Explorar el Código

fix:你为绑定供应商

super-yimizi hace 2 meses
padre
commit
67346b5414
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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);
         }