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); + } } //订单收货记录