Skip to content

Commit

Permalink
规范编写
Browse files Browse the repository at this point in the history
  • Loading branch information
zlkbdotnet committed Jan 25, 2019
1 parent fa23705 commit 0b735ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/modules/Admin/controllers/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ public function ajaxAction()

if($method AND $mailaddress AND $mailpassword AND $sendmail AND $sendname AND $host AND $port AND is_numeric($isssl) AND $csrf_token){
if ($this->VerifyCsrfToken($csrf_token)) {
$m=array(
$m = array(
'mailaddress'=>$mailaddress,
'mailpassword'=>$mailpassword,
'sendmail'=>$sendmail,
'sendname'=>$sendname,
'host'=>$host,
'port'=>$port,
'isssl'=>$isssl,
'isssl'=>$isssl
);
if($method == 'edit' AND $id>0){
$u = $this->m_email->UpdateByID($m,$id);
Expand All @@ -70,7 +70,7 @@ public function ajaxAction()
}
}else{
$id = $this->m_email->Insert($m);
if($id){
if($id>0){
//更新缓存
$this->m_email->getConfig(1);
$data = array('code' => 1, 'msg' => '新增成功');
Expand Down

0 comments on commit 0b735ca

Please sign in to comment.