代码优化

master
erzhongxmu 2023-02-06 21:08:29 +08:00
parent e761b90990
commit 9501dfe853
1 changed files with 1 additions and 3 deletions

View File

@ -358,9 +358,7 @@ public class ApiController {
} }
TSUser user = userService.checkUserExits(tsBaseUser.getUserName(), tsBaseUser.getPassword()); TSUser user = userService.checkUserExits(tsBaseUser.getUserName(), tsBaseUser.getPassword());
if (user == null) { if (user == null) {
D0.setErrorMsg("用户账号密码错误!"); return ResultApi.error("获取TOKEN,账号密码错误!");
D0.setOK(false);
return ResultApi.error("获取TOKEN,账号密码错误[{}]!");
} }
return ResultApi.OK(user); return ResultApi.OK(user);
} }