Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
79f71649
Commit
79f71649
authored
Jun 28, 2018
by
Junling Bu
Browse files
fix[litemall-wx-api]: 设置实际付款金额
parent
cc2bccf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxOrderController.java
View file @
79f71649
...
...
@@ -489,9 +489,12 @@ public class WxOrderController {
// TODO 更有意义的显示名称
orderRequest
.
setBody
(
"litemall小商场-订单测试支付"
);
// 元转成分
// 这里仅支付1分
// TODO 这里1分钱需要改成实际订单金额
orderRequest
.
setTotalFee
(
1
);
Integer
fee
=
1
;
// 这里演示仅支付1分
// 实际项目取消下面两行注释
// BigDecimal actualPrice = order.getActualPrice();
// fee = actualPrice.multiply(new BigDecimal(100)).intValue();
orderRequest
.
setTotalFee
(
fee
);
// TODO 用户IP地址
orderRequest
.
setSpbillCreateIp
(
"123.12.12.123"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment