Commit 5a937acd authored by hujun's avatar hujun

恢复上一次提交

parent 349c195b
...@@ -127,13 +127,10 @@ class Member extends Basic ...@@ -127,13 +127,10 @@ 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' => ['in','0,-1'] 'status' => 0
])->value('status'); ])->count();
if ($num == '-1') { if ($num > 0) {
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