#301 修改了激活数据作者的邮件发送目标判断
This commit is contained in:
parent
be5a637383
commit
eda40489af
|
@ -11,6 +11,7 @@
|
||||||
@update 2012-3-9 17:01 李建轩
|
@update 2012-3-9 17:01 李建轩
|
||||||
@update 2012-3-12 16:16 李建轩
|
@update 2012-3-12 16:16 李建轩
|
||||||
@update 2012-3-14 18:01 李建轩
|
@update 2012-3-14 18:01 李建轩
|
||||||
|
@update 2012-3-21 10:58 李建轩
|
||||||
|
|
||||||
*/
|
*/
|
||||||
class AuthorController extends Zend_Controller_Action
|
class AuthorController extends Zend_Controller_Action
|
||||||
|
@ -941,10 +942,27 @@ class AuthorController extends Zend_Controller_Action
|
||||||
|
|
||||||
if($this->debug==0)
|
if($this->debug==0)
|
||||||
{
|
{
|
||||||
//此处应进行判断,数据是否已经有管理者,若有管理者,则只给管理者发送确认邮件即可!
|
$sql = "SELECT u.email FROM mdauthor a
|
||||||
//todo
|
LEFT JOIN users u ON u.id=a.userid
|
||||||
|
WHERE a.uuid=?";
|
||||||
|
$sth = $this->db->prepare($sql);
|
||||||
|
$sth->execute(array($uuid));
|
||||||
|
$mlist = $sth->fetchAll();
|
||||||
|
|
||||||
|
if(count($mlist)>0)
|
||||||
|
{
|
||||||
|
foreach($mlist as $v)
|
||||||
|
{
|
||||||
|
$mail->addTo($v['email']);
|
||||||
|
}
|
||||||
|
}//mdauthor中已经注册的用户
|
||||||
|
|
||||||
|
else{
|
||||||
foreach ($address as $dist)
|
foreach ($address as $dist)
|
||||||
{$mail->addTo($dist);} //元数据作者
|
{
|
||||||
|
$mail->addTo($dist);
|
||||||
|
}
|
||||||
|
}//元数据作者
|
||||||
$mail->addCc($this->view->config->service->email); //管理员
|
$mail->addCc($this->view->config->service->email); //管理员
|
||||||
}else{
|
}else{
|
||||||
@$mail->addTo($this->debug_email);
|
@$mail->addTo($this->debug_email);
|
||||||
|
|
Loading…
Reference in New Issue