Commit 9a67c744 authored by 任国军's avatar 任国军

fix total_fee bug

parent 4497038a
Pipeline #27171 passed with stage
in 4 seconds
...@@ -317,7 +317,7 @@ class WechatService extends Service { ...@@ -317,7 +317,7 @@ class WechatService extends Service {
const nonce_str = ctx.helper.md5(moment().millisecond()).slice(0, 16); const nonce_str = ctx.helper.md5(moment().millisecond()).slice(0, 16);
const body = input.body || '趣选课-测试'; const body = input.body || '趣选课-测试';
const out_trade_no = input.order_no; const out_trade_no = input.order_no;
const total_fee = Number(input.pay * 100); const total_fee = Math.round(input.pay * 100);
const spbill_create_ip = ctx.helper.getClientIP() || '127.0.0.1'; const spbill_create_ip = ctx.helper.getClientIP() || '127.0.0.1';
const notify_url = ctx.app.config.NODE_URL.includes('uat-nginx') ? 'https://uat-nginx.jianbing.com/51business/api/course/v5/wechat/pay/notify' : 'https://b.jianbing.com/51business/api/course/v5/wechat/pay/notify'; const notify_url = ctx.app.config.NODE_URL.includes('uat-nginx') ? 'https://uat-nginx.jianbing.com/51business/api/course/v5/wechat/pay/notify' : 'https://b.jianbing.com/51business/api/course/v5/wechat/pay/notify';
const trade_type = 'JSAPI'; const trade_type = 'JSAPI';
......
Markdown is supported
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