Browse Source

Merge branch 'dev_wx_msg' into dev_temp

dev_shibei_match
sunyuchao 5 years ago
parent
commit
1d63c1238f
  1. 4
      epmet-module/epmet-message/epmet-message-server/src/main/java/com/epmet/redis/WxmpMessageRedis.java

4
epmet-module/epmet-message/epmet-message-server/src/main/java/com/epmet/redis/WxmpMessageRedis.java

@ -2,6 +2,8 @@ package com.epmet.redis;
import com.epmet.commons.tools.redis.RedisUtils;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -15,6 +17,7 @@ import java.util.Map;
@Slf4j
@Component
public class WxmpMessageRedis {
private Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private RedisUtils redisUtils;
@ -24,6 +27,7 @@ public class WxmpMessageRedis {
* @author zxc
*/
public Map<String,Object> getAuthorizerRefreshToken(String key){
logger.info("发送微信订阅消息,获取accesstoken的key值:" + key);
Map<String, Object> result = redisUtils.hGetAll("epmet:wechartthird:authorizerrefreshtoken:" + key);
return result;
}

Loading…
Cancel
Save