update 电单车协议

This commit is contained in:
Guoqs
2024-08-30 17:23:04 +08:00
parent 07f4f4f76e
commit 0e38ea9e13
9 changed files with 58 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ public abstract class AbstractYkcHandler implements InitializingBean {
*/
protected void saveLastTimeAndCheckChannel(String pileSn, ChannelHandlerContext ctx) {
String redisKey = CacheConstants.PILE_LAST_CONNECTION + pileSn;
redisCache.setCacheObject(redisKey, DateUtils.getDateTime(), CacheConstants.cache_expire_time_1d);
redisCache.setCacheObject(redisKey, DateUtils.getDateTime(), CacheConstants.cache_expire_time_30d);
// 保存桩号和channel的关系
PileChannelEntity.checkChannel(pileSn, ctx);