Commit b7228624 authored by hujun's avatar hujun Committed by hujun

发送短信返回信息修改

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