mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-14 06:03:42 +08:00
fix:readme
This commit is contained in:
@@ -13,7 +13,7 @@ import lombok.Getter;
|
|||||||
public enum CommonErrorEnum implements ErrorEnum {
|
public enum CommonErrorEnum implements ErrorEnum {
|
||||||
|
|
||||||
SYSTEM_ERROR(-1, "系统出小差了,请稍后再试哦~~"),
|
SYSTEM_ERROR(-1, "系统出小差了,请稍后再试哦~~"),
|
||||||
PARAM_VALID(-2, "参数校验失败"),
|
PARAM_VALID(-2, "参数校验失败{0}"),
|
||||||
FREQUENCY_LIMIT(-3, "请求太频繁了,请稍后再试哦~~"),
|
FREQUENCY_LIMIT(-3, "请求太频繁了,请稍后再试哦~~"),
|
||||||
LOCK_LIMIT(-4, "请求太频繁了,请稍后再试哦~~"),
|
LOCK_LIMIT(-4, "请求太频繁了,请稍后再试哦~~"),
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class CreateTokenTest {
|
|||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
JWTVerifier verifier = JWT.require(Algorithm.HMAC256("dsfsdfsdfsdfsd")).build();
|
JWTVerifier verifier = JWT.require(Algorithm.HMAC256("dsfsdfsdfsdfsc")).build();
|
||||||
DecodedJWT jwt = verifier.verify(token);
|
DecodedJWT jwt = verifier.verify(token);
|
||||||
log.info(jwt.getClaims().toString());
|
log.info(jwt.getClaims().toString());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user