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

notify

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