修复邀请专家问题
This commit is contained in:
parent
53bb04bdcb
commit
f77f2c5457
|
@ -316,7 +316,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
@$this->db->exec($update);
|
||||
}
|
||||
//实例化EmailText
|
||||
$mailtp=new EmailText($this->db,'invite-expert-review',array('user'=>$expinfo['realname'],'uuid'=>$uuid,'title'=>$md['title']));
|
||||
$mailtp=new EmailText($this->db,'invite-expert-review',array('user'=>$expinfo['realname'],'uuid'=>$uuid,'title'=>$md['title'],'userid'=>$v));
|
||||
$mail=new WestdcMailer($this->view->config->smtp);
|
||||
$mail->setBodyText($mailtp->getBody());
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
|
@ -324,6 +324,8 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$mail->setSubject($mailtp->getSubject());
|
||||
$filecontent=file_get_contents("http://" . $_SERVER['HTTP_HOST'].'/data/doc/review/1/uuid/'.$uuid);
|
||||
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, $md['title'].'.doc');
|
||||
$filecontent=file_get_contents("http://" . $_SERVER['HTTP_HOST'].'/service/pdf/uuid/'.$uuid);
|
||||
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, $md['title'].'.pdf');
|
||||
if($mail->send())
|
||||
{
|
||||
$this->messenger->addMessage('成功邀请专家:'.$expinfo['realname']);
|
||||
|
|
Loading…
Reference in New Issue