Commit 349c195b authored by hujun's avatar hujun

发送短信返回信息修改

parent bc2bee40
...@@ -127,9 +127,13 @@ class Member extends Basic ...@@ -127,9 +127,13 @@ class Member extends Basic
if ($this->request->param('type') == 'add') { if ($this->request->param('type') == 'add') {
$num = $this->user->where([ $num = $this->user->where([
'user_phone'=> $phone, 'user_phone'=> $phone,
'status' => 0 'status' => ['in','0,-1']
])->count(); ])->value('status');
if ($num > 0) {
if ($num == '-1') {
return $this->response($data['status'], '账号已存在,请注册激活');
}
if ($num == 0) {
return $this->response($data['status'], '您已注册,请登录'); 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