diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index 15c57af0..ce2ce4bd 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -55,6 +55,7 @@ class Admin_DownController extends Zend_Controller_Action unset($mail); $mail = new WestdcMailer($this->view->config->smtp); + $mailtp=new EmailText($this->db,'offline-start-admin',array('user'=>$row['username'],'datalist'=>$datalist)); $mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $sql="select distinct(res.email) from dataorder d left join role on d.uuid=role.uuid left join responsible res on role.resid=res.id where length(res.email)>4 and d.offlineappid=? and role.role in ('pointOfContact','resourceProvider')"; $rows=$this->db->fetchAll($this->db->quoteInto($sql,$start)); @@ -67,7 +68,6 @@ class Admin_DownController extends Zend_Controller_Action $addrs[] = 'nztong@lzb.ac.cn'; $addrs[] = 'wjian@lzb.ac.cn'; $addrs[] = 'lixin@lzb.ac.cn'; - $mailtp=new EmailText($this->db,'offline-start-admin',array('user'=>$row['username'],'datalist'=>$datalist)); $mail->setBodyText($mailtp->getBody()); $mail->setSubject($mailtp->getSubject()); $mail->addTo($addrs);