|
|
@@ -41,6 +41,7 @@ public class JwtHelper {
|
|
|
.claim("userId", jwtInfo.getUserId())
|
|
|
.claim("userName", jwtInfo.getUserName())
|
|
|
.claim("school_id", jwtInfo.getSchool_id())
|
|
|
+ .claim("mobile", jwtInfo.getMobile())
|
|
|
.setExpiration(DateTime.now().plusSeconds(expire).toDate())
|
|
|
// 设置算法(必须)
|
|
|
.signWith(SignatureAlgorithm.RS256, RsaUtils.getPrivateKey(priKeyPath))
|
|
|
@@ -97,7 +98,8 @@ public class JwtHelper {
|
|
|
ObjectUtils.getStringValue(body.get("appId")),
|
|
|
ObjectUtils.getLongValue(body.get("school_id")),
|
|
|
ObjectUtils.getLongValue(body.get("userId")),
|
|
|
- ObjectUtils.getStringValue(body.get("userName"))
|
|
|
+ ObjectUtils.getStringValue(body.get("userName")),
|
|
|
+ ObjectUtils.getStringValue(body.get("mobile"))
|
|
|
);
|
|
|
}
|
|
|
}
|