|
@@ -46,7 +46,7 @@ public class FsCoursePlaySourceConfigServiceImpl extends ServiceImpl<FsCoursePla
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public FsCoursePlaySourceConfig selectConfigByAppId(String appId, String key) {
|
|
public FsCoursePlaySourceConfig selectConfigByAppId(String appId, String key) {
|
|
|
- String configValue = Convert.toStr(redisCache.getCacheObject(getCacheKey(key)));
|
|
|
|
|
|
|
+ String configValue = Convert.toStr(redisCache.getCacheObject(key));
|
|
|
if (StringUtils.isNotEmpty(configValue)) {
|
|
if (StringUtils.isNotEmpty(configValue)) {
|
|
|
return converter(configValue);
|
|
return converter(configValue);
|
|
|
}
|
|
}
|
|
@@ -61,17 +61,6 @@ public class FsCoursePlaySourceConfigServiceImpl extends ServiceImpl<FsCoursePla
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 设置cache key
|
|
|
|
|
- *
|
|
|
|
|
- * @param configKey 参数键
|
|
|
|
|
- * @return 缓存键key
|
|
|
|
|
- */
|
|
|
|
|
- private String getCacheKey(String configKey)
|
|
|
|
|
- {
|
|
|
|
|
- return Constants.SYS_CONFIG_KEY + configKey;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
private FsCoursePlaySourceConfig converter(String value){
|
|
private FsCoursePlaySourceConfig converter(String value){
|
|
|
if(StringUtils.isNotEmpty(value)){
|
|
if(StringUtils.isNotEmpty(value)){
|
|
|
return JSON.parseObject(value,FsCoursePlaySourceConfig.class);
|
|
return JSON.parseObject(value,FsCoursePlaySourceConfig.class);
|