From 25f36ba278ee533de963a4c4b18fac614d8c2959 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 12 Aug 2023 10:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=94=AF=E4=BB=98=E6=88=90?= =?UTF-8?q?=E5=8A=9Fhandle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/paySuccessOrder.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/listener/paySuccessOrder.php b/app/listener/paySuccessOrder.php index fd130743..9d5f1f88 100644 --- a/app/listener/paySuccessOrder.php +++ b/app/listener/paySuccessOrder.php @@ -38,6 +38,12 @@ class paySuccessOrder if (!$merchant || $merchant['street_id'] == 0) { throw new \Exception('商户地址不存在', 200); } + + //发起物流信息返回快递员手机 + $logisticsPhone = $this->sendLogistics($this->event['order']['order_id'], $this->event['order']['order_sn']); + //生成用户的收货码 + $this->generateLogisticsCode($this->event['order']['uid'], $this->event['order']['order_id'], $this->event['order']['order_sn'], $logisticsPhone); + $this->streetId = $merchant['street_id']; $commission_rate = ($event['order']['commission_rate'] / 100); @@ -137,10 +143,6 @@ class paySuccessOrder Log::error('订单分润出错', ['code' => $e->getCode(), 'message' => $e->getMessage(), 'trace' => $e->getTraceAsString()]); DingTalk::exception($e, '订单分润出错'); } - //发起物流信息返回快递员手机 - $logisticsPhone = $this->sendLogistics($this->event['order']['order_id'], $this->event['order']['order_sn']); - //生成用户的收货码 - $this->generateLogisticsCode($this->event['order']['uid'], $this->event['order']['order_id'], $this->event['order']['order_sn'], $logisticsPhone); } //用户收货码