From 52ecc436b6b4a332e93f00c01ae7fff130035d5d Mon Sep 17 00:00:00 2001 From: lxy Date: Tue, 1 Apr 2025 11:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4ship=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E6=8E=A8=E9=80=81trigger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/triggers/ship.js | 2 +- lib/triggers/ship.js | 4 ++-- src/triggers/ship.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/es/triggers/ship.js b/es/triggers/ship.js index 2a3ecc40..40b3a9b6 100644 --- a/es/triggers/ship.js +++ b/es/triggers/ship.js @@ -150,7 +150,7 @@ const triggers = [ { entity: 'ship', name: '当ship状态发生变化时,尝试向订阅者推送', - action: ['ship', 'receive', 'giveUp', 'reject'], + action: ['ship', 'receive', 'cancel', 'reject', 'unknow', 'startReceiving', 'succeedReceiving'], when: 'after', fn: async ({ operation }, context, option) => { const { filter, id } = operation; diff --git a/lib/triggers/ship.js b/lib/triggers/ship.js index cd6937c4..45f1bce1 100644 --- a/lib/triggers/ship.js +++ b/lib/triggers/ship.js @@ -143,7 +143,7 @@ const triggers = [ } } if (needUpload) { - await (0, ship_1.uploadShippingInfo)(shipId, context); + // await (0, ship_1.uploadShippingInfo)(shipId, context); return 1; } } @@ -153,7 +153,7 @@ const triggers = [ { entity: 'ship', name: '当ship状态发生变化时,尝试向订阅者推送', - action: ['ship', 'receive', 'giveUp', 'reject'], + action: ['ship', 'receive', 'cancel', 'reject', 'unknow', 'startReceiving', 'succeedReceiving'], when: 'after', fn: async ({ operation }, context, option) => { const { filter, id } = operation; diff --git a/src/triggers/ship.ts b/src/triggers/ship.ts index f2b922b1..c745ecba 100644 --- a/src/triggers/ship.ts +++ b/src/triggers/ship.ts @@ -159,7 +159,7 @@ const triggers: Trigger[] = [ { entity: 'ship', name: '当ship状态发生变化时,尝试向订阅者推送', - action: ['ship', 'receive', 'giveUp', 'reject'], + action: ['ship', 'receive', 'cancel', 'reject', 'unknow', 'startReceiving', 'succeedReceiving'], when: 'after', fn: async ({ operation }, context, option) => { const { filter, id } = operation as EntityDict['ship']['Update'];