From b12735446492b12198fdf79f02c2c714decfa40b Mon Sep 17 00:00:00 2001 From: jack Date: Tue, 10 Jul 2018 11:03:37 +0800 Subject: [PATCH] remove mail send in data submit --- .../default/controllers/AuthorController.php | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index 16d1509d..4001f2eb 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -2373,47 +2373,47 @@ class AuthorController extends Zend_Controller_Action $this->db->query($sql,array($row['uuid'],$u_id,$row['uuid'],$u_id)); //email to admin - $mail=new WestdcMailer($this->view->config->smtp); - $mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组'); - $mailtp=new EmailText($this->db,"metadata-new-admin",array( - 'user' => $user->username, - 'uuid' => $iso->uuid, - 'email'=> $user->email, - //元数据标题 - 'title'=> $iso->resTitle, - )); - $mail->setBodyText($mailtp->getBody()); - $mail->setSubject($mailtp->getSubject()); - if($this->debug==0) - { - $mail->addTo($this->view->config->service->email); - }else{ - $mail->addTo($this->debug_email); - } - $mail->send(); - - unset($mail); - unset($mailtp); +// $mail=new WestdcMailer($this->view->config->smtp); +// $mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组'); +// $mailtp=new EmailText($this->db,"metadata-new-admin",array( +// 'user' => $user->username, +// 'uuid' => $iso->uuid, +// 'email'=> $user->email, +// //元数据标题 +// 'title'=> $iso->resTitle, +// )); +// $mail->setBodyText($mailtp->getBody()); +// $mail->setSubject($mailtp->getSubject()); +// if($this->debug==0) +// { +// $mail->addTo($this->view->config->service->email); +// }else{ +// $mail->addTo($this->debug_email); +// } +// $mail->send(); +// +// unset($mail); +// unset($mailtp); //email to author - $mail=new WestdcMailer($this->view->config->smtp); - $mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组'); - $mailtp=new EmailText($this->db,"metadata-new-author",array( - 'user' => $user->username, - 'uuid' => $iso->uuid, - 'email'=> $user->email, - //元数据标题 - 'title'=> $iso->resTitle, - )); - $mail->setBodyText($mailtp->getBody()); - $mail->setSubject($mailtp->getSubject()); - if($this->debug==0) - { - $mail->addTo($user->email); - $mail->addCc($this->view->config->service->email); - }else{ - $mail->addTo($this->debug_email); - } - @$mail->send(); +// $mail=new WestdcMailer($this->view->config->smtp); +// $mail->setFrom($this->view->config->service->email,'时空三极环境大数据平台服务组'); +// $mailtp=new EmailText($this->db,"metadata-new-author",array( +// 'user' => $user->username, +// 'uuid' => $iso->uuid, +// 'email'=> $user->email, +// //元数据标题 +// 'title'=> $iso->resTitle, +// )); +// $mail->setBodyText($mailtp->getBody()); +// $mail->setSubject($mailtp->getSubject()); +// if($this->debug==0) +// { +// $mail->addTo($user->email); +// $mail->addCc($this->view->config->service->email); +// }else{ +// $mail->addTo($this->debug_email); +// } +// @$mail->send(); $data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功提交,请等待数据中心进一步处理!')); $this->jsonexit($data);