main
HuangHai 2 months ago
parent c2fd6b30dc
commit 4a816290b1

@ -26,7 +26,7 @@ public class KeLingJwtUtil {
sk = PropKit.get("KeLing.sk");
}
static String getJwt() {
public static String getJwt() {
try {
Date expiredAt = new Date(System.currentTimeMillis() + 1800 * 1000); // 有效时间,此处示例代表当前时间+1800s(30min)
Date notBefore = new Date(System.currentTimeMillis() - 5 * 1000); //开始生效的时间,此处示例代表当前时间-5秒

Loading…
Cancel
Save