Commit 2d29508c authored by sugar's avatar sugar

姓名卡

parent ffe652d8
......@@ -60,7 +60,7 @@ class Sms extends Api
// $ret = Smslib::send($mobile, null, $event);
$ret = DxSms::sendCodeSms($mobile,$event);
if ($ret) {
$this->success(__('发送成功'));
$this->success(__('发送成功'),$ret);
} else {
$this->error(__('发送失败,请检查短信配置是否正确'));
}
......
......@@ -37,7 +37,7 @@ class DxSms
Log::write("错误", json_encode($e));
return false;
}
return true;
return ['msg' =>'success','sms_code' =>$code];
}
}
\ No newline at end of file
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 to comment