소스 검색

fix:验货端

super-yimizi 1 개월 전
부모
커밋
68368589cd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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(__('手机号不能与当前手机号相同'));
         }
         // 换绑手机号