|
@@ -134,9 +134,9 @@ public class FsCourseLinkServiceImpl implements IFsCourseLinkService
|
|
|
|
|
|
|
|
private volatile Integer version = 0;
|
|
private volatile Integer version = 0;
|
|
|
|
|
|
|
|
- private static final String WX_URL_REDIS_PREFIX = "wx:link:";
|
|
|
|
|
|
|
+ private static final String WX_URL_REDIS_PREFIX = "wx:link";
|
|
|
|
|
|
|
|
- private static final String WX_URL_REDIS_PREFIX_MEMBER = "wx:member:link:";
|
|
|
|
|
|
|
+ private static final String WX_URL_REDIS_PREFIX_MEMBER = "wx:member:link";
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -789,12 +789,12 @@ public class FsCourseLinkServiceImpl implements IFsCourseLinkService
|
|
|
key = "becomeVip=";
|
|
key = "becomeVip=";
|
|
|
linkStrJson = linkStr.substring(linkStr.indexOf(key) + key.length());
|
|
linkStrJson = linkStr.substring(linkStr.indexOf(key) + key.length());
|
|
|
json = JSON.parseObject(linkStrJson);
|
|
json = JSON.parseObject(linkStrJson);
|
|
|
- wxAppLinkKey = String.format("%s%s%s%s%s",WX_URL_REDIS_PREFIX_MEMBER,json.get("companyId"),json.get("companyUserId"),json.get("projectId"),appId);
|
|
|
|
|
|
|
+ wxAppLinkKey = String.format("%s:%s:%s:%s:%s",WX_URL_REDIS_PREFIX_MEMBER,json.get("companyId"),json.get("companyUserId"),json.get("projectId"),appId);
|
|
|
}else {
|
|
}else {
|
|
|
key = "course=";
|
|
key = "course=";
|
|
|
linkStrJson = linkStr.substring(linkStr.indexOf(key) + key.length());
|
|
linkStrJson = linkStr.substring(linkStr.indexOf(key) + key.length());
|
|
|
json = JSON.parseObject(linkStrJson);
|
|
json = JSON.parseObject(linkStrJson);
|
|
|
- wxAppLinkKey = String.format("%s%s%s%s%s%s%s",WX_URL_REDIS_PREFIX,json.get("companyId"),json.get("companyUserId"),json.get("projectId"),json.get("courseId"),json.get("videoId"),appId);
|
|
|
|
|
|
|
+ wxAppLinkKey = String.format("%s:%s:%s:%s:%s:%s:%s",WX_URL_REDIS_PREFIX,json.get("companyId"),json.get("companyUserId"),json.get("projectId"),json.get("courseId"),json.get("videoId"),appId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String linkCache = redisCache.getCacheObject(wxAppLinkKey);
|
|
String linkCache = redisCache.getCacheObject(wxAppLinkKey);
|