qifengquan 1 年之前
父节点
当前提交
e3aafbb64a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      application/api/controller/User.php

+ 2 - 1
application/api/controller/User.php

@@ -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'));