mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 10:00:11 +08:00
Merge branch 'dev-new' into dev-new-rabbitmq
This commit is contained in:
@@ -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:";
|
||||
|
||||
/**
|
||||
* 充电桩状态前缀
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user