Commit 188cd1d2 authored by 姜登's avatar 姜登

notify

parent 051d79b9
Pipeline #8632 passed with stage
in 6 seconds
...@@ -143,12 +143,7 @@ class TaskController extends Controller { ...@@ -143,12 +143,7 @@ class TaskController extends Controller {
insertData.appKey = appKey; insertData.appKey = appKey;
delete insertData.code; delete insertData.code;
await service.storage.write(insertData); await service.storage.write(insertData);
await service.cache.set({
key: taskId,
value: taskNote,
});
await service.partner.notice(order); await service.partner.notice(order);
return;
} catch (err) { } catch (err) {
ctx.logger.error('handleCallback', JSON.stringify(err), JSON.stringify(result)); ctx.logger.error('handleCallback', JSON.stringify(err), JSON.stringify(result));
taskNote = { taskNote = {
......
...@@ -112,7 +112,7 @@ class PartnerService extends Service { ...@@ -112,7 +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) { if (secondNotifyUrl && (notifyUrl !== 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],
......
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