Browse Source

优化代码

test
smallchill 6 years ago
parent
commit
6407d280ec
  1. 2
      blade-auth/src/main/java/org/springblade/auth/controller/AuthController.java
  2. 2
      blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/feign/IUserClient.java
  3. 2
      blade-service/blade-user/src/main/java/org/springblade/system/user/feign/UserClient.java

2
blade-auth/src/main/java/org/springblade/auth/controller/AuthController.java

@ -63,7 +63,7 @@ public class AuthController {
User user = res.getData().getUser();
//验证用户
if (user == null) {
if (Func.isEmpty(user.getId())) {
return R.fail("用户名或密码不正确");
}

2
blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/feign/IUserClient.java

@ -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);
}

2
blade-service/blade-user/src/main/java/org/springblade/system/user/feign/UserClient.java

@ -35,7 +35,7 @@ public class UserClient implements IUserClient {
IUserService service;
@Override
@GetMapping(API_PREFIX + "/userInfo")
@GetMapping(API_PREFIX + "/user-info")
public R<UserInfo> userInfo(String account, String password) {
return R.data(service.userInfo(account, password));
}

Loading…
Cancel
Save