|
@@ -288,8 +288,9 @@ class User extends Api
|
|
|
// $this->error(__('Captcha is incorrect'));
|
|
|
// }
|
|
|
$user = \app\common\model\User::getByMobile($mobile);
|
|
|
- $openid = (new \app\api\controller\Common())->getOpenid($code);
|
|
|
exit();
|
|
|
+ $openid = (new \app\api\controller\Common())->getOpenid($code);
|
|
|
+
|
|
|
if ($user) {
|
|
|
if ($user->status != 'normal') {
|
|
|
$this->error(__('Account is locked'));
|