Forráskód Böngészése

账号封禁,提示友好

lizhen_gitee 1 éve
szülő
commit
3d6a7a4ae9

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

@@ -95,7 +95,7 @@ class User extends Api
         $user = \app\common\model\User::getByMobile($mobile);
         if ($user) {
             if ($user->status != 1) {
-                $this->error(__('Account is locked'));
+                $this->error('账号异常,请联系客服处理');
             }
             //如果已经有账号则直接登录
             $ret = $this->auth->direct($user->id);

+ 2 - 2
application/common/library/Auth.php

@@ -116,7 +116,7 @@ class Auth
                 return false;
             }
             if ($user['status'] != 1) {
-                $this->setError('Account is locked');
+                $this->setError('账号异常,请联系客服处理');
                 return false;
             }
             $this->_user = $user;
@@ -377,7 +377,7 @@ class Auth
         }
 
         if ($user->status != 1) {
-            $this->setError('Account is locked');
+            $this->setError('账号异常,请联系客服处理');
             return false;
         }
         if ($user->password != $this->getEncryptPassword($password, $user->salt)) {