feat: 修改redis存储策略
This commit is contained in:
@@ -24,7 +24,7 @@ public class RedisUtil {
|
||||
@Resource
|
||||
private RedisTemplate redisTemplate;
|
||||
|
||||
private static final String CACHE_KEY_SEPARATOR = ".";
|
||||
private static final String CACHE_KEY_SEPARATOR = ":";
|
||||
|
||||
/**
|
||||
* 构建缓存key
|
||||
|
@@ -30,7 +30,7 @@ public class WXServiceImpl implements WXService {
|
||||
@Resource
|
||||
RedisUtil redisUtil;
|
||||
|
||||
final String WX_ACCESS_TOKEN_REDIS_KEY = "wx_access_token";
|
||||
final String WX_ACCESS_TOKEN_REDIS_KEY = "wechat:token";
|
||||
//接口重试次数
|
||||
int retry = 3;
|
||||
|
||||
|
@@ -80,7 +80,7 @@ public class WxMpEventServiceImpl implements WxMpEventService {
|
||||
String[] keys = mpSubscribeEventRequest.getEventKey().split("_");
|
||||
if ("qrscene".equals(keys[0]) && "ScanReg".equals(keys[1])) {
|
||||
log.info("AppId:{},ClientId:{}", keys[2], keys[3]);
|
||||
authUserRpc.wechatRegister(keys[2], mpSubscribeEventRequest.getToUserName(), keys[3]);
|
||||
authUserRpc.wechatRegister(keys[2], mpSubscribeEventRequest.getFromUserName(), keys[3]);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user