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'];