|
@@ -33,8 +33,8 @@ public class WxOpenInRedisBookConfigStorage extends WxOpenInRedisConfigStorage {
|
|
this.platform = platform;
|
|
this.platform = platform;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getVerifyTicketCacheKey(String appid) {
|
|
|
|
- return WxThirdPartService.VERIFY_TICKET_KEY_PREFIX + appid;
|
|
|
|
|
|
+ public String getVerifyTicketCacheKey(String componentAppId) {
|
|
|
|
+ return WxThirdPartService.VERIFY_TICKET_KEY_PREFIX + componentAppId;
|
|
}
|
|
}
|
|
|
|
|
|
public String getVerifyTicketCacheKey() {
|
|
public String getVerifyTicketCacheKey() {
|
|
@@ -47,7 +47,7 @@ public class WxOpenInRedisBookConfigStorage extends WxOpenInRedisConfigStorage {
|
|
|
|
|
|
public String getComponentTokenCacheKey(ComponentInfo componentInfo) {
|
|
public String getComponentTokenCacheKey(ComponentInfo componentInfo) {
|
|
|
|
|
|
- return WxThirdPartService.COMPONENT_TOKEN_KEY_PREFIX + Md5Util.md5(JsonUtils.toJsonString(componentInfo));
|
|
|
|
|
|
+ return WxThirdPartService.COMPONENT_TOKEN_KEY_PREFIX + Md5Util.md5(JsonUtils.toJsonNoSort(componentInfo));
|
|
}
|
|
}
|
|
|
|
|
|
public String getComponentTokenCacheKey() {
|
|
public String getComponentTokenCacheKey() {
|
|
@@ -63,13 +63,13 @@ public class WxOpenInRedisBookConfigStorage extends WxOpenInRedisConfigStorage {
|
|
System.out.println("ComponentVerifyTicket is null, please set ComponentVerifyTicket");
|
|
System.out.println("ComponentVerifyTicket is null, please set ComponentVerifyTicket");
|
|
}
|
|
}
|
|
ComponentInfo componentInfo = new ComponentInfo(getComponentAppId(), getComponentAppSecret(), getComponentVerifyTicket());
|
|
ComponentInfo componentInfo = new ComponentInfo(getComponentAppId(), getComponentAppSecret(), getComponentVerifyTicket());
|
|
- return WxThirdPartService.COMPONENT_TOKEN_KEY_PREFIX + Md5Util.md5(JsonUtils.toJsonString(componentInfo));
|
|
|
|
|
|
+ return WxThirdPartService.COMPONENT_TOKEN_KEY_PREFIX + Md5Util.md5(JsonUtils.toJsonNoSort(componentInfo));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAuthorizerTokenCacheKey(AuthorizerInfo authorizerInfo) {
|
|
public String getAuthorizerTokenCacheKey(AuthorizerInfo authorizerInfo) {
|
|
|
|
|
|
- return WxThirdPartService.COMPONENT_TOKEN_KEY_PREFIX + Md5Util.md5(JsonUtils.toJsonString(authorizerInfo));
|
|
|
|
|
|
+ return WxThirdPartService.COMPONENT_TOKEN_KEY_PREFIX + Md5Util.md5(JsonUtils.toJsonNoSort(authorizerInfo));
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|