配置移除 报错
parent
913b1e780f
commit
213ba2997e
|
@ -366,17 +366,24 @@ public class GlobalDataManaager implements IManager {
|
||||||
if(next.getValue()<=now){
|
if(next.getValue()<=now){
|
||||||
updateBuyTimesGoodsId.add(next.getKey());
|
updateBuyTimesGoodsId.add(next.getKey());
|
||||||
long endTime = next.getValue();
|
long endTime = next.getValue();
|
||||||
|
boolean isMiss =false; //移除清除的配置 线上错误避免
|
||||||
while (endTime<now){
|
while (endTime<now){
|
||||||
SRechargeCommodityConfig sRechargeCommodityConfig = SRechargeCommodityConfig.rechargeCommodityConfigMap.get(next.getKey());
|
SRechargeCommodityConfig sRechargeCommodityConfig = SRechargeCommodityConfig.rechargeCommodityConfigMap.get(next.getKey());
|
||||||
if(null==sRechargeCommodityConfig){
|
if(null==sRechargeCommodityConfig){
|
||||||
LOGGER.error("Exception:旧配置删除");
|
isMiss =true;
|
||||||
|
LOGGER.error("Exception:旧配置删除,请检查"+next.getKey());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
endTime += sRechargeCommodityConfig.getDailyUpdate() * TimeUtils.ONE_DAY ;
|
endTime += sRechargeCommodityConfig.getDailyUpdate() * TimeUtils.ONE_DAY ;
|
||||||
}
|
}
|
||||||
|
if(isMiss){
|
||||||
|
iterator.remove();
|
||||||
|
}else {
|
||||||
refreshBagMap.put(next.getKey(),endTime);
|
refreshBagMap.put(next.getKey(),endTime);
|
||||||
update =true;
|
update =true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(update){
|
if(update){
|
||||||
if(buyGoodsTimes!=null && !buyGoodsTimes.isEmpty()){
|
if(buyGoodsTimes!=null && !buyGoodsTimes.isEmpty()){
|
||||||
|
|
|
@ -62,7 +62,9 @@ public class MessageUtil {
|
||||||
}
|
}
|
||||||
int[] secretKey = Tea.KEY;
|
int[] secretKey = Tea.KEY;
|
||||||
byte[] bytes1 = Tea.encrypt2(bytes, secretKey);
|
byte[] bytes1 = Tea.encrypt2(bytes, secretKey);
|
||||||
|
if (backMessage.length != 0) {
|
||||||
LOGGER.info("sendbyte"+bytes1.length);
|
LOGGER.info("sendbyte"+bytes1.length);
|
||||||
|
}
|
||||||
return bytes1;
|
return bytes1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue