mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 20:15:06 +08:00
update 修改余额支付订单
This commit is contained in:
@@ -4,6 +4,8 @@ import com.jsowell.common.constant.Constants;
|
||||
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import io.jsonwebtoken.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@@ -14,6 +16,7 @@ import java.util.Date;
|
||||
|
||||
@Component
|
||||
public class JWTUtils {
|
||||
private static final Logger logger = LoggerFactory.getLogger(JWTUtils.class);
|
||||
// 令牌自定义标识
|
||||
private static String header;
|
||||
|
||||
@@ -94,6 +97,7 @@ public class JWTUtils {
|
||||
.parseClaimsJws(token)
|
||||
.getBody();
|
||||
} catch (ExpiredJwtException e) {
|
||||
logger.error("parseToken error", e);
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_TOKEN_ERROR);
|
||||
}
|
||||
return claims;
|
||||
|
||||
Reference in New Issue
Block a user