黄远 пре 5 година
родитељ
комит
332f08d653

+ 1 - 1
lift-system-service/src/main/java/cn/com/ty/lift/system/user/service/impl/LoginService.java

@@ -286,7 +286,7 @@ public class LoginService implements ILoginService {
         //校验团队信息
         MaintenanceCompany maintenanceCompany = maintenanceCompanyService.getById(userRequest.getCompanyId());
         if (maintenanceCompany == null) {
-            return RestResponse.success(ApiConstants.RESULT_SUCCESS, "要切换的团队不存在");
+            return RestResponse.fail(ApiConstants.RESULT_ERROR, "要切换的团队不存在");
         }
         maintenanceCompany.setCurrentTeamFlag(true);
         userResponse.setMaintenanceCompany(maintenanceCompany);