死循环

back_recharge
zhangshanxue 2020-10-02 01:00:48 +08:00
parent 838db384fd
commit 72256d2370
1 changed files with 6 additions and 0 deletions

View File

@ -386,13 +386,19 @@ public class GlobalDataManaager implements IManager {
updateBuyTimesGoodsId.add(next.getKey());
long endTime = next.getValue();
boolean isMiss =false; //移除清除的配置 线上错误避免
int tt =0;
while (endTime<now){
tt++;
SRechargeCommodityConfig sRechargeCommodityConfig = SRechargeCommodityConfig.rechargeCommodityConfigMap.get(next.getKey());
if(null==sRechargeCommodityConfig){
isMiss =true;
LOGGER.error("Exception旧配置删除请检查"+next.getKey());
break;
}
if(tt>1000){
LOGGER.error("Exception配置"+next.getKey()+"endTime"+endTime+"sRe"+sRechargeCommodityConfig.getDailyUpdate());
break;
}
endTime += sRechargeCommodityConfig.getDailyUpdate() * TimeUtils.ONE_DAY ;
}
if(isMiss){