Commit 2b0bc7a1 authored by 姜登's avatar 姜登

sb

parent a682ce4b
Pipeline #12964 passed with stage
in 16 seconds
...@@ -98,6 +98,7 @@ class PartnerService extends Service { ...@@ -98,6 +98,7 @@ class PartnerService extends Service {
// orderId/userId/status // orderId/userId/status
async notify(order) { async notify(order) {
const { ctx, service } = this; const { ctx, service } = this;
try {
const { orderId, notifyUrl, userId, notice } = order; const { orderId, notifyUrl, userId, notice } = order;
const dbRes = await service.order.getOneByOrderId({ orderId, notice: 1 }); const dbRes = await service.order.getOneByOrderId({ orderId, notice: 1 });
if (!dbRes && notifyUrl && notice !== '1') { if (!dbRes && notifyUrl && notice !== '1') {
...@@ -118,7 +119,9 @@ class PartnerService extends Service { ...@@ -118,7 +119,9 @@ class PartnerService extends Service {
await order.update({ notice: '1' }); await order.update({ notice: '1' });
} }
} }
return; } catch (err) {
ctx.logger.warn('【Partner】 notice error', JSON.stringify(order), JSON.stringify(err));
}
} }
} }
......
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