From 2bb574ebec2660298881d1d39b4777f74ec5ce11 Mon Sep 17 00:00:00 2001 From: Lemon Date: Thu, 2 Jan 2025 13:48:36 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AF=B7=E6=B1=82=E4=BB=A4=E7=89=8C?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/jsowell/common/constant/CacheConstants.java | 2 +- .../thirdparty/platform/service/ThirdPartyPlatformService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jsowell-common/src/main/java/com/jsowell/common/constant/CacheConstants.java b/jsowell-common/src/main/java/com/jsowell/common/constant/CacheConstants.java index 3879cb687..c42b654b8 100644 --- a/jsowell-common/src/main/java/com/jsowell/common/constant/CacheConstants.java +++ b/jsowell-common/src/main/java/com/jsowell/common/constant/CacheConstants.java @@ -193,7 +193,7 @@ public class CacheConstants { /** * 第三方平台Token缓存 */ - public static final String THIRD_PARTY_TOKEN_BY_OPERATOR_ID = "third_party_token_by_operator_id:"; + public static final String THIRD_PARTY_TOKEN_BY_OPERATOR_SECRET = "third_party_token_by_operator_secret:"; /** * 充电桩状态前缀 diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/ThirdPartyPlatformService.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/ThirdPartyPlatformService.java index b5a0c39b4..51e76a294 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/ThirdPartyPlatformService.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/ThirdPartyPlatformService.java @@ -446,7 +446,7 @@ public interface ThirdPartyPlatformService extends InitializingBean { String dataSecretIv, String signSecret, String dataSecret) { String token = ""; // 先查询缓存有没有token - String tokenKey = CacheConstants.THIRD_PARTY_TOKEN_BY_OPERATOR_ID + operatorId; + String tokenKey = CacheConstants.THIRD_PARTY_TOKEN_BY_OPERATOR_SECRET + operatorSecret; RedisCache redisCache = BeanUtils.getBean(RedisCache.class); String cacheToken = redisCache.getCacheObject(tokenKey); if (StringUtils.isNotBlank(cacheToken)) {