|
@@ -150,7 +150,7 @@ public class MerchantServiceImpl implements MerchantService {
|
|
|
|
|
|
// 查询用户的商户信息,并且缓存到redis中
|
|
|
OAuth2AccessTokenDO oAuth2AccessTokenDO = message.getOAuth2AccessTokenDO();
|
|
|
- ShopMessage shopMessage = JsonUtils.parseObject(stringRedisTemplate.opsForValue().get("shop:" + message.getOAuth2AccessTokenDO().getAccessToken()), ShopMessage.class);
|
|
|
+ ShopMessage shopMessage = JsonUtils.parseObject(stringRedisTemplate.opsForValue().get("shop:" + message.getOAuth2AccessTokenDO().getUserId()), ShopMessage.class);
|
|
|
if (shopMessage != null) {
|
|
|
// 刷新时间
|
|
|
stringRedisTemplate.opsForValue().set("shop:" + oAuth2AccessTokenDO.getUserId(), JsonUtils.toJsonString(shopMessage), 3600 * 24, TimeUnit.SECONDS);
|