Commit 60ce3cb8 authored by hujun's avatar hujun Committed by hujun

用户发送注册验证状态

parent bd0b3a05
......@@ -125,7 +125,10 @@ class Member extends Basic
//注册发送短信验证
if ($this->request->param('type') == 'add') {
$num = $this->user->where('user_phone', $phone)->count();
$num = $this->user->where([
'user_phone'=> $phone,
'status' => 0
])->count();
if ($num > 0) {
return $this->response($data['status'], '您已注册,请登录');
}
......
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