feat(PayNotifyLogic): 修改了小程序发货通知的推送优先级

This commit is contained in:
mkm 2024-06-24 09:22:02 +08:00
parent 3e425d97fc
commit 296953484b
2 changed files with 3 additions and 2 deletions

View File

@ -245,7 +245,7 @@ class PayNotifyLogic extends BaseLogic
// Db::name('order_middle')->insert(['c_order_id' => $order['id']]);
// }
if (!empty($extra['payer']['openid']) && $order->pay_type == 7) {
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid']], 5);
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid']], 4);
}
return true;
}
@ -307,7 +307,7 @@ class PayNotifyLogic extends BaseLogic
if (!empty($extra['payer']['openid'])) {
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid'], 'logistics_type' => 3], 5);
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid'], 'logistics_type' => 3], 4);
}
return true;
}

View File

@ -26,6 +26,7 @@ class PushDeliverySend implements Consumer
{
$package['max_attempts']=0;
Log::error('推送小程序发货通知失败:'.$package['data']['order_id']);
Log::error('推送小程序发货通知失败:' . $e->getMessage() . ',lien:' . $e->getLine() . ',file:' . $e->getFile());
return $package;
}
}