Commit 59872c69 authored by 任国军's avatar 任国军

add wechat_pay_notify

parent ddd6e7dd
Pipeline #24428 passed with stage
in 4 seconds
...@@ -353,7 +353,7 @@ class WechatService extends Service { ...@@ -353,7 +353,7 @@ class WechatService extends Service {
ctx.logger.info('course_wechat_pay_params: ' + xmlData); ctx.logger.info('course_wechat_pay_params: ' + xmlData);
let ret = await new Promise((resolve, reject) => { let ret = await new Promise((resolve, reject) => {
request({ url: 'https://uat-nginx.jianbing.com/51business/api/course/v5/wechat/pay/notify', method: 'POST', body: xmlData }, function(err, response, body) { request({ url: 'https://api.mch.weixin.qq.com/pay/unifiedorder', method: 'POST', body: xmlData }, function(err, response, body) {
if (!err && response.statusCode === 200) { if (!err && response.statusCode === 200) {
ctx.logger.info('course_wechat_pay_result: ' + body); ctx.logger.info('course_wechat_pay_result: ' + body);
resolve(body); resolve(body);
......
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