|
|
@@ -158,7 +158,12 @@ public class MsgCharngingRunner {
|
|
|
}
|
|
|
log.info("{}-{}-5分钟内无状态下发一次103", orderStatus.getPileCode(), orderStatus.getGunsCode());
|
|
|
deviceControlerService.sendImeiDetail(orderStatus.getDeviceImei());
|
|
|
- redisCache.setCacheObject(key, System.currentTimeMillis(),240, TimeUnit.SECONDS);
|
|
|
+ int timeout = 240;
|
|
|
+ //订单3分钟内一分钟请求一次103 否则就4分钟获取一次
|
|
|
+ if((System.currentTimeMillis()-orderStatus.getCreateTime())<180*1000){
|
|
|
+ timeout = 60;
|
|
|
+ }
|
|
|
+ redisCache.setCacheObject(key, System.currentTimeMillis(),timeout, TimeUnit.SECONDS);
|
|
|
}
|
|
|
|
|
|
//停止一个订单
|