Просмотр исходного кода

//tt product

release_toaliyun_real
xhxu 4 лет назад
Родитель
Сommit
f0055385cc
1 измененных файлов: 7 добавлений и 3 удалений
  1. +7
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 7
- 3
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<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");


Загрузка…
Отмена
Сохранить