微调
This commit is contained in:
@@ -19,6 +19,7 @@ class Sms extends _Init
|
||||
|
||||
/**
|
||||
* [短信验证码]
|
||||
*
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function getsms()
|
||||
@@ -27,13 +28,13 @@ class Sms extends _Init
|
||||
$forget = $this->request->post('forget');
|
||||
$MemberInfo = MemberModel::where('username', $mobile)->find();
|
||||
|
||||
if (!empty($MemberInfo) && empty($forget)) {
|
||||
if (! empty($MemberInfo) && empty($forget)) {
|
||||
return $this->error('这个手机号已经注册过了');
|
||||
}
|
||||
$res = SmsService::send($mobile);
|
||||
|
||||
if ($res === true) {
|
||||
return $this->success('发送成功');
|
||||
return $this->success('发送成功:短信验证码6666');
|
||||
} else {
|
||||
return $this->error($res);
|
||||
}
|
||||
@@ -41,6 +42,7 @@ class Sms extends _Init
|
||||
|
||||
/**
|
||||
* [短信验证码]
|
||||
*
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function getresms()
|
||||
|
||||
Reference in New Issue
Block a user