死循环
parent
838db384fd
commit
72256d2370
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue