配置移除 报错
parent
913b1e780f
commit
213ba2997e
|
@ -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){
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue