cqpCow hace 1 año
padre
commit
46bf19c095
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Middleware/CheckWx.php

+ 1 - 1
app/Http/Middleware/CheckWx.php

@@ -65,7 +65,7 @@ class CheckWx
             $data['role_authority'] = EmployeeService::getPersonRoleQx($data['role']);
 
             //当前门店
-            $userSetTopDepartId = $request->header('userSetTopDepartId');
+            $userSetTopDepartId = $request->input('userSetTopDepartId');
             if(empty($userSetTopDepartId)) return response()->json(['code'=>202,'msg'=>'当前门店信息缺失','data'=>null]);
 
             $return = EmployeeService::getLoginDepart($employee_id, $userSetTopDepartId);