|
|
|
@@ -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<Product.PoiStruct> 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<String,String> map = new HashMap<>(); |
|
|
|
map.put("app_id",appid); |
|
|
|
map.put("app_id",cAppInfo.getAppId()); |
|
|
|
map.put("path", Constant.mainPageUrl); |
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
paramMap.put("type","cd"); |
|
|
|
|