@ -63,7 +63,7 @@ public class AuthController {
User user = res.getData().getUser();
//验证用户
if (user == null) {
if (Func.isEmpty(user.getId())) {
return R.fail("用户名或密码不正确");
}
@ -42,7 +42,7 @@ public interface IUserClient {
* @param password 密码
* @return
*/
@GetMapping(API_PREFIX + "/userInfo")
@GetMapping(API_PREFIX + "/user-info")
R<UserInfo> userInfo(@RequestParam("account") String account, @RequestParam("password") String password);
@ -35,7 +35,7 @@ public class UserClient implements IUserClient {
IUserService service;
@Override
public R<UserInfo> userInfo(String account, String password) {
return R.data(service.userInfo(account, password));