user
parent
85de914222
commit
280afa28ff
|
|
@ -86,7 +86,6 @@ class CommonController extends Controller
|
||||||
{
|
{
|
||||||
$result['msg'] = L('common_operation_error');
|
$result['msg'] = L('common_operation_error');
|
||||||
}
|
}
|
||||||
ob_clean();
|
|
||||||
exit(json_encode($result));
|
exit(json_encode($result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,17 +137,21 @@ class Email
|
||||||
// 邮件正文不支持HTML的备用显示
|
// 邮件正文不支持HTML的备用显示
|
||||||
$this->obj->AltBody = strip_tags($param['content']);
|
$this->obj->AltBody = strip_tags($param['content']);
|
||||||
|
|
||||||
// 发送邮件
|
try {
|
||||||
if($this->obj->Send())
|
// 发送邮件
|
||||||
{
|
if($this->obj->Send())
|
||||||
// 是否存在验证码
|
|
||||||
if(!empty($param['code']))
|
|
||||||
{
|
{
|
||||||
$this->KindofSession($param['code']);
|
// 是否存在验证码
|
||||||
|
if(!empty($param['code']))
|
||||||
|
{
|
||||||
|
$this->KindofSession($param['code']);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
$this->error = $this->obj->ErrorInfo;
|
||||||
}
|
}
|
||||||
return true;
|
} catch(Exception $e) {
|
||||||
} else {
|
$this->error = $e->getMessage();
|
||||||
$this->error = $this->obj->ErrorInfo;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue