feat: friends related logic refactor
This commit is contained in:
@@ -76,7 +76,7 @@ public class JwtUtil {
|
||||
private Claims getClaims(String token) {
|
||||
try {
|
||||
Jws<Claims> jws = jwtParser.parseSignedClaims(token);
|
||||
System.out.println(jws.getPayload());
|
||||
// System.out.println(jws.getPayload());
|
||||
return jws.getPayload();
|
||||
} catch (ExpiredJwtException e) {
|
||||
throw new TokenExpiredException("Token 已过期", e);
|
||||
|
||||
@@ -45,7 +45,13 @@ public enum ResultCode {
|
||||
MAIL_VERIFY_CODE_ERROR("4106","验证码错误,请重新输入"),
|
||||
|
||||
//审核相关
|
||||
AUDIT_NO_RECORD("4201","无审核记录条目");
|
||||
AUDIT_NO_RECORD("4201","无审核记录条目"),
|
||||
|
||||
//邀请相关
|
||||
INVITING_REQUEST_ERROR("4301","邀请请求错误"),
|
||||
INVITING_ILLEGAL_REQUEST("4302","非法邀请"),
|
||||
INVITING_ILLEGAL_RESPONSE("4303","非法邀请");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user