|
|
@ -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; |
|
|
|
} |
|
|
|