Commit 79f71649 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx-api]: 设置实际付款金额

parent cc2bccf2
...@@ -489,9 +489,12 @@ public class WxOrderController { ...@@ -489,9 +489,12 @@ public class WxOrderController {
// TODO 更有意义的显示名称 // TODO 更有意义的显示名称
orderRequest.setBody("litemall小商场-订单测试支付"); orderRequest.setBody("litemall小商场-订单测试支付");
// 元转成分 // 元转成分
// 这里仅支付1分 Integer fee = 1;
// TODO 这里1分钱需要改成实际订单金额 // 这里演示仅支付1分
orderRequest.setTotalFee(1); // 实际项目取消下面两行注释
// BigDecimal actualPrice = order.getActualPrice();
// fee = actualPrice.multiply(new BigDecimal(100)).intValue();
orderRequest.setTotalFee(fee);
// TODO 用户IP地址 // TODO 用户IP地址
orderRequest.setSpbillCreateIp("123.12.12.123"); orderRequest.setSpbillCreateIp("123.12.12.123");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment