diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java index cb32992b4..15bd7e296 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java @@ -137,6 +137,9 @@ public class WxCouponServiceImpl implements WxCouponService { @Autowired TtCouponChannelPoiMapper ttCouponChannelPoiMapper; + @Autowired + WxAppinfoService wxAppinfoService; + @Autowired private MqBaseProducer mqBaseProducer; @@ -1267,7 +1270,7 @@ public class WxCouponServiceImpl implements WxCouponService { prostruct.setAccountName(merchantList.get(0).getMerchantName()); // prostruct.setSoldStartTime(); // prostruct.setSoldEndTime(); - prostruct.setOutUrl(getGoodsEntrySchema(ttWebService.getTtWebConfig().getAppid(),wxCouponChannelAddVo.getId())); + prostruct.setOutUrl(getGoodsEntrySchema(coupon,wxCouponChannelAddVo.getId())); List poiList = new ArrayList(); for (WxMerchantVo mvo:merchantList){ Product.PoiStruct poiStruct = new Product.PoiStruct(); @@ -1330,9 +1333,10 @@ public class WxCouponServiceImpl implements WxCouponService { } } - private String getGoodsEntrySchema(String appid,Long couponChannelId){ + private String getGoodsEntrySchema(TenantEntity tenantEntity,Long couponChannelId){ + WxAppinfo cAppInfo = wxAppinfoService.getCAppInfo(tenantEntity, EnumAppPlat.TOUTIAO); Map map = new HashMap<>(); - map.put("app_id",appid); + map.put("app_id",cAppInfo.getAppId()); map.put("path", Constant.mainPageUrl); Map paramMap = new HashMap<>(); paramMap.put("type","cd");