浏览代码

fix[litemall-wx]: 小程序端报错couponList是undefined。

Junling Bu 7 年之前
父节点
当前提交
ec9edbdb20
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxCartController.java

+ 2 - 1
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxCartController.java

@@ -515,11 +515,12 @@ public class WxCartController {
         BigDecimal orderTotalPrice = checkedGoodsPrice.add(freightPrice).subtract(couponPrice);
         BigDecimal actualPrice = orderTotalPrice.subtract(integralPrice);
 
-        Map<String, Object> data = new HashMap();
+        Map<String, Object> data = new HashMap<>();
         data.put("addressId", addressId);
         data.put("checkedAddress", checkedAddress);
         data.put("couponId", couponId);
         data.put("checkedCoupon", 0);
+        data.put("couponList", "");
         data.put("goodsTotalPrice", checkedGoodsPrice);
         data.put("freightPrice", freightPrice);
         data.put("couponPrice", couponPrice);