Commit 051d79b9 authored by 姜登's avatar 姜登

notify

parent 5fcb95e2
Pipeline #8629 passed with stage
in 4 seconds
......@@ -112,18 +112,20 @@ class PartnerService extends Service {
});
if ((appKey === '2A1B338EA5DC489BBFFBCBB4708EF875' || appKey === '99C5C908336048EBBE3AC95F65AC9FEC' || appKey === 'E0191124612C4CD3ACC82867EA6AB7CE') && ctx.app.notifyMap && ctx.app.notifyMap.get(appKey)) {
const secondNotifyUrl = ctx.app.notifyMap.get(appKey).notifyUrl;
const appRet = await ctx.curl(secondNotifyUrl, {
charset: 'utf-8',
timeout: [30000, 30000],
contentType: 'json',
method: 'POST',
data: {
order_id: orderId,
user_id: userId || '',
status: 'success',
},
});
ctx.logger.info(`【Partner】 APPnotice ${secondNotifyUrl}`, 'orderId:', orderId, 'result:', appRet.status, JSON.stringify(appRet.data));
if (secondNotifyUrl) {
const appRet = await ctx.curl(secondNotifyUrl, {
charset: 'utf-8',
timeout: [30000, 30000],
contentType: 'json',
method: 'POST',
data: {
order_id: orderId,
user_id: userId || '',
status: 'success',
},
});
ctx.logger.info(`【Partner】 APPnotice ${secondNotifyUrl}`, 'orderId:', orderId, 'result:', appRet.status, JSON.stringify(appRet.data));
}
}
ctx.logger.info(`【Partner】 notice ${notifyUrl}`, 'orderId:', orderId, 'result:', ret.status, JSON.stringify(ret.data));
if (ret.status === 200) {
......
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