| @@ -204,7 +204,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { | |||||
| prostruct.setPoiList(poiList); | prostruct.setPoiList(poiList); | ||||
| Map<String, String> productAttrKeyValueMap = ttattrs.getProductAttrKeyValueMap(); | Map<String, String> productAttrKeyValueMap = ttattrs.getProductAttrKeyValueMap(); | ||||
| // productAttrKeyValueMap.put("trade_url",); | |||||
| productAttrKeyValueMap.put("trade_url",getUpOrderEntrySchema(coupon,wxCouponChannel.getId())); | |||||
| prostruct.setAttrKeyValueMap(productAttrKeyValueMap); | prostruct.setAttrKeyValueMap(productAttrKeyValueMap); | ||||
| product.setProduct(prostruct); | product.setProduct(prostruct); | ||||
| @@ -446,4 +446,16 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { | |||||
| return JSON.toJSONString(map); | return JSON.toJSONString(map); | ||||
| } | } | ||||
| private String getUpOrderEntrySchema(TenantEntity tenantEntity,Long couponChannelId){ | |||||
| WxAppinfo cAppInfo = wxAppinfoService.getCAppInfo(tenantEntity, EnumAppPlat.TOUTIAO); | |||||
| Map<String,String> map = new HashMap<>(); | |||||
| map.put("app_id",cAppInfo.getAppId()); | |||||
| map.put("path", Constant.mainPageUrl); | |||||
| Map<String,Object> paramMap = new HashMap<>(); | |||||
| paramMap.put("type","orderAffirm"); | |||||
| paramMap.put("couponChannelId",couponChannelId); | |||||
| map.put("params",JSON.toJSONString(paramMap)); | |||||
| return JSON.toJSONString(map); | |||||
| } | |||||
| } | } | ||||