Browse Source

fix:验货端

super-yimizi 1 week ago
parent
commit
68368589cd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/inspection/User.php

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

@@ -212,8 +212,8 @@ class User extends Base
         if (!$validate->check($params, [], 'changeMobile')) {
             $this->error($validate->getError());
         }
-        $user = $this->auth->getUser();
-        if ($user->mobile == $mobile) {
+        $user = $this->auth->getApplication();
+        if ($user->phone == $mobile) {
             $this->error(__('手机号不能与当前手机号相同'));
         }
         // 换绑手机号