This commit is contained in:
齐天大圣 2024-04-03 10:28:47 +08:00
parent c2229eb228
commit edef89438d
2 changed files with 2 additions and 4 deletions

View File

@ -401,14 +401,12 @@ public class StoreServiceImpl extends ServiceImpl<MtStoreMapper, MtStore> implem
List<TAccount> accountList = tAccountMapper.getStationmasterByStoreId(tAccount); List<TAccount> accountList = tAccountMapper.getStationmasterByStoreId(tAccount);
if (accountList != null && accountList.size() > 0) { if (accountList != null && accountList.size() > 0) {
redisTemplate.opsForValue().set(flag,flag,300, TimeUnit.SECONDS); redisTemplate.opsForValue().set(flag,flag,3000, TimeUnit.SECONDS);
// Object codeInRedis = redisTemplate.opsForValue().get(flag); // Object codeInRedis = redisTemplate.opsForValue().get(flag);
return redisTemplate.hasKey(flag); return redisTemplate.hasKey(flag);
}else { }else {
return false; return false;
} }
} }

View File

@ -177,7 +177,7 @@ public class BackendLoginController extends BaseController {
if (ObjectUtils.isNotEmpty(one1.getTurnoverEndTime())){ if (ObjectUtils.isNotEmpty(one1.getTurnoverEndTime())){
Date date = new Date(); Date date = new Date();
Date turnoverEndTime = one1.getTurnoverEndTime(); Date turnoverEndTime = one1.getTurnoverEndTime();
if (date.compareTo(turnoverEndTime)<0){ if (date.compareTo(turnoverEndTime)>0){
return getFailureResult(201,"请付费后再登录!"); return getFailureResult(201,"请付费后再登录!");
} }
} }