Commit 117725d3 authored by 任国军's avatar 任国军

fix wechat notify

parent 4c360823
Pipeline #25087 passed with stage
in 4 seconds
...@@ -319,7 +319,7 @@ class WechatService extends Service { ...@@ -319,7 +319,7 @@ class WechatService extends Service {
const out_trade_no = input.order_no; const out_trade_no = input.order_no;
const total_fee = Number(input.pay * 100); const total_fee = Number(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 = '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