Browse Source

fix:你为绑定供应商

super-yimizi 1 month ago
parent
commit
67346b5414
1 changed files with 5 additions and 1 deletions
  1. 5 1
      application/api/controller/inspection/User.php

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

@@ -61,7 +61,11 @@ class User extends Base
             //  验证是否 通过
             if ($isInspection->audit_status !== InspectionApplication::AUDIT_STATUS_PASSED) {
             $this->error('您的验货员申请未通过');
-            }           
+            } 
+            // 验证是否 绑定供应商
+            if (!$isInspection->supplier_id) {
+                $this->error('您未绑定供应商');
+            }
             //如果已经有账号则直接登录
             $ret = $this->auth->direct($user->id);
         }