Commit 5a937acd authored by hujun's avatar hujun

恢复上一次提交

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