fix
This commit is contained in:
@@ -54,7 +54,7 @@ public class AuthController {
|
||||
public R<?> login(@RequestBody String body) {
|
||||
LoginBody loginBody = JSONObject.parseObject(body, LoginBody.class);
|
||||
ValidatorUtils.validate(loginBody);
|
||||
Long clientId = loginBody.getClientId();
|
||||
Long clientId = Long.parseLong(loginBody.getClientId());
|
||||
String grantType = loginBody.getGrantType();
|
||||
SysClientVO clientVo = sysClientService.queryByClientId(clientId);
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ public class LoginBody implements Serializable {
|
||||
/**
|
||||
* 客户端id
|
||||
*/
|
||||
@NotNull(message = "Auth clientid cannot be blank")
|
||||
private Long clientId;
|
||||
@NotBlank(message = "Auth clientid cannot be blank")
|
||||
private String clientId;
|
||||
|
||||
/**
|
||||
* 授权类型
|
||||
|
||||
Reference in New Issue
Block a user