Commit dfef04bc by allen

加入友好提示

parent 95fa5e61
Showing with 2 additions and 2 deletions
......@@ -2145,11 +2145,11 @@ Class OrderController extends Controller
$crm_header = array('api-key: crm a1b2c3d4e5f6g7h8i9jk');
$res = json_decode(post_curl($crm_url, $data,$crm_header));
if($res->err_code == 0){
if(!empty($res->err_code) && $res->err_code == 0){
echo json_encode(['errcode'=>1,'errmsg'=>'发送成功']);
exit;
}else{
echo json_encode(['errcode'=>-1,'errmsg'=>$res->msg]);
echo json_encode(['errcode'=>-1,'errmsg'=>'邮件发送接口错误,邮件发送失败']);
exit;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment