Showing
1 changed file
with
2 additions
and
1 deletions
@@ -59,7 +59,8 @@ class RegisterController extends WebAction | @@ -59,7 +59,8 @@ class RegisterController extends WebAction | ||
59 | $data['message'] = '由于你IP受限无法注册'; | 59 | $data['message'] = '由于你IP受限无法注册'; |
60 | break; | 60 | break; |
61 | } | 61 | } |
62 | - if(!empty(PassportModel::getUserInfoByMobile($area, $mobile))) { | 62 | + $user = PassportModel::getUserInfoByMobile($area, $mobile); |
63 | + if(!empty($user)) { | ||
63 | $data['message'] = '手机号码已经存在'; | 64 | $data['message'] = '手机号码已经存在'; |
64 | break; | 65 | break; |
65 | } | 66 | } |
-
Please register or login to post a comment