Commit bb5d9108 by tc

bug:[none]优化接口

parent f9e97156
...@@ -2416,16 +2416,13 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -2416,16 +2416,13 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
// 获取配套资料 // 获取配套资料
if (RightsNowItemTypeNew.SERVES.value.equals(type)) { if (RightsNowItemTypeNew.SERVES.value.equals(type)) {
String key = "SERVER_TYPE:"+rightsSettingId+"_"+adviserId+"_"+bookId+"_"+channelId+"_"+readType; String key = "SERVER_TYPE:"+rightsSettingId+"_"+adviserId+"_"+bookId+"_"+channelId+"_"+readType;
RightsSetting rightsSetting4Serves;
if(JedisClusterUtils.exists(key)){ if(JedisClusterUtils.exists(key)){
String s = JedisClusterUtils.get(key); String s = JedisClusterUtils.get(key);
rightsSetting4Serves = JSON.parseObject(s, RightsSetting.class); rightsSetting = JSON.parseObject(s, RightsSetting.class);
}else { }else {
rightsSetting4Serves = setServe(rightsSetting, adviserId, bookId, channelId, readType); setServe(rightsSetting, adviserId, bookId, channelId, readType);
JedisClusterUtils.set(key,JSON.toJSONString(rightsSetting4Serves),10*60); JedisClusterUtils.set(key,JSON.toJSONString(rightsSetting),10*60);
} }
// rightsSetting4Serves = setServe(rightsSetting, adviserId, bookId, channelId, readType);
fillCollect(wechatUserId, rightsSetting4Serves, type);
} }
// 获取抽奖权益 // 获取抽奖权益
if (RightsNowItemTypeNew.DRAW.value.equals(type)) { if (RightsNowItemTypeNew.DRAW.value.equals(type)) {
......
...@@ -6,7 +6,7 @@ eureka: ...@@ -6,7 +6,7 @@ eureka:
instance: instance:
status-page-url-path: /book/v1.0/swagger-ui.html status-page-url-path: /book/v1.0/swagger-ui.html
client: client:
register-with-eureka: true #禁止自己当做服务注册 register-with-eureka: false #禁止自己当做服务注册
spring: spring:
application: application:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment