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