Commit cdee69b2 by fanjiaxin

联调问题处理

parent 28d7ba8b
Pipeline #71578 passed with stages
in 59 seconds
...@@ -64,11 +64,4 @@ public class AuthInterceptor implements HandlerInterceptor { ...@@ -64,11 +64,4 @@ public class AuthInterceptor implements HandlerInterceptor {
Object handler, Exception ex) { Object handler, Exception ex) {
LoginUserContextHolder.remove(); LoginUserContextHolder.remove();
} }
/**
* 刷新token缓存过期时间
*/
private void resetCacheExpire(String token, String userInfo) {
redisClient.setStr(CoreConstant.REDIS_TOKEN_USER_KEY + token, userInfo, CoreConstant.REDIS_TOKEN_EXPIRE_SECONDS);
}
} }
...@@ -102,9 +102,9 @@ public class ProductServiceImpl implements IProductService { ...@@ -102,9 +102,9 @@ public class ProductServiceImpl implements IProductService {
listVO.setShopAppid(item.getShop_appid()); listVO.setShopAppid(item.getShop_appid());
listVO.setProductId(item.getProduct_id()); listVO.setProductId(item.getProduct_id());
// 获取推广链接 // 获取推广链接
if(null != loginUserInfo && StringUtils.isNotBlank(loginUserInfo.getOpenId())){ if(null != loginUserInfo && StringUtils.isNotBlank(loginUserInfo.getSharerAppId())){
WeChatPromoteProductLinkVO promoteProductLinkVO = weChatShopPromoteProductLinkRequest.handle( WeChatPromoteProductLinkVO promoteProductLinkVO = weChatShopPromoteProductLinkRequest.handle(
loginUserInfo.getOpenId(), loginUserInfo.getSharerAppId(),
Long.valueOf(item.getProduct_id()), Long.valueOf(item.getProduct_id()),
item.getShop_appid()); item.getShop_appid());
listVO.setProductUrl(null != promoteProductLinkVO ? promoteProductLinkVO.getShort_link() : null); listVO.setProductUrl(null != promoteProductLinkVO ? promoteProductLinkVO.getShort_link() : null);
......
...@@ -41,9 +41,9 @@ public class WeChatShopPromoteProductLinkRequest implements IWeChatRequest { ...@@ -41,9 +41,9 @@ public class WeChatShopPromoteProductLinkRequest implements IWeChatRequest {
/** /**
* 处理 * 处理
*/ */
public WeChatPromoteProductLinkVO handle(String openId, Long productId, String shopAppid) { public WeChatPromoteProductLinkVO handle(String sharerAppId, Long productId, String shopAppid) {
WeChatPromoteProductLinkBO params = WeChatPromoteProductLinkBO.builder() WeChatPromoteProductLinkBO params = WeChatPromoteProductLinkBO.builder()
.sharer_openid(openId) .sharer_appid(sharerAppId)
.product_id(productId) .product_id(productId)
.shop_appid(shopAppid) .shop_appid(shopAppid)
.build(); .build();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment