From 45fb87ffa9f6fb20fc6587f83b0927dbe1abd232 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 22 Aug 2023 14:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=91=E7=94=9F=E7=89=A9?= =?UTF-8?q?=E6=B5=81=E4=BF=A1=E6=81=AF=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/SendGoodsCode.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/listener/SendGoodsCode.php b/app/listener/SendGoodsCode.php index 962484f0..819d1d71 100644 --- a/app/listener/SendGoodsCode.php +++ b/app/listener/SendGoodsCode.php @@ -16,12 +16,14 @@ class SendGoodsCode { $this->event = $event; Log::info("sendGoodsCode ============= handle监听order_id " . $this->event['order_id']); - //发起物流信息返回快递员手机 - $logisticsPhone = $this->sendLogistics($this->event['order_id'], $this->event['order_sn']); - //生成用户的收货码 - $this->generateLogisticsCode($this->event['uid'], $this->event['order_id'], $this->event['order_sn'], $logisticsPhone); - //记录订单收货地址记录 - $this->recordOrderAddr($this->event); + if ($this->event['activity_type'] == 0) { + //发起物流信息返回快递员手机 + $logisticsPhone = $this->sendLogistics($this->event['order_id'], $this->event['order_sn']); + //生成用户的收货码 + $this->generateLogisticsCode($this->event['uid'], $this->event['order_id'], $this->event['order_sn'], $logisticsPhone); + //记录订单收货地址记录 + $this->recordOrderAddr($this->event); + } } //订单收货记录