配置移除 报错

back_recharge
zhangshanxue 2020-04-27 10:26:37 +08:00
parent 913b1e780f
commit 213ba2997e
2 changed files with 13 additions and 4 deletions

View File

@ -366,16 +366,23 @@ public class GlobalDataManaager implements IManager {
if(next.getValue()<=now){
updateBuyTimesGoodsId.add(next.getKey());
long endTime = next.getValue();
boolean isMiss =false; //移除清除的配置 线上错误避免
while (endTime<now){
SRechargeCommodityConfig sRechargeCommodityConfig = SRechargeCommodityConfig.rechargeCommodityConfigMap.get(next.getKey());
if(null==sRechargeCommodityConfig){
LOGGER.error("Exception旧配置删除");
isMiss =true;
LOGGER.error("Exception旧配置删除请检查"+next.getKey());
break;
}
endTime += sRechargeCommodityConfig.getDailyUpdate() * TimeUtils.ONE_DAY ;
}
refreshBagMap.put(next.getKey(),endTime);
update =true;
if(isMiss){
iterator.remove();
}else {
refreshBagMap.put(next.getKey(),endTime);
update =true;
}
}
}
if(update){

View File

@ -62,7 +62,9 @@ public class MessageUtil {
}
int[] secretKey = Tea.KEY;
byte[] bytes1 = Tea.encrypt2(bytes, secretKey);
LOGGER.info("sendbyte"+bytes1.length);
if (backMessage.length != 0) {
LOGGER.info("sendbyte"+bytes1.length);
}
return bytes1;
}