|
@@ -27,7 +27,7 @@ public class ComPlayerDisasterDayTask extends QuartzJobBean {
|
|
|
protected void executeInternal(JobExecutionContext jobExecutionContext) {
|
|
protected void executeInternal(JobExecutionContext jobExecutionContext) {
|
|
|
log.info("触发灾难周期任务开始");
|
|
log.info("触发灾难周期任务开始");
|
|
|
long time = System.currentTimeMillis() + RedisData.getDisastersDayTimeout();
|
|
long time = System.currentTimeMillis() + RedisData.getDisastersDayTimeout();
|
|
|
- String _redisKey = "LOCK:COM_PLAYER_DISASTER:DAY:" + DateUtil.format(new Date(), "yyyyMMd");
|
|
|
|
|
|
|
+ String _redisKey = "LOCK:COM_PLAYER_DISASTER:DAY:" + DateUtil.format(new Date(), "yyyyMMdd");
|
|
|
|
|
|
|
|
if (!redisLock.lock(_redisKey, String.valueOf(time))) {
|
|
if (!redisLock.lock(_redisKey, String.valueOf(time))) {
|
|
|
log.info("触发每天灾难任务加锁失败!");
|
|
log.info("触发每天灾难任务加锁失败!");
|