From a746ed879ff1d09b4b2e2497dfc8a30431ce7794 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 29 Jul 2024 17:15:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9OrderWetchaPushSend?= =?UTF-8?q?=E7=B1=BB=E4=BB=A5=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queue/redis/OrderWetchaPushSend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/queue/redis/OrderWetchaPushSend.php b/app/queue/redis/OrderWetchaPushSend.php index 2aaa19ec..60e1ba2f 100644 --- a/app/queue/redis/OrderWetchaPushSend.php +++ b/app/queue/redis/OrderWetchaPushSend.php @@ -43,7 +43,8 @@ class OrderWetchaPushSend implements Consumer $cart_info=StoreOrderCartInfo::where('oid',$order['id'])->field('cart_info')->select(); $product_info="\r\n>商品信息:------------------"; foreach($cart_info as $k=>$v['cart_info']){ - $a=$v['cart_info']['cart_info']['name'].' 数量:'.$v['cart_info']['cart_info']['cart_num'].$v['cart_info']['cart_info']['unit_name']??''.' 价格:'.$v['cart_info']['cart_info']['pay_price'].'元'; + $unit_name=$v['cart_info']['cart_info']['unit_name']??''; + $a=$v['cart_info']['cart_info']['name'].' 数量:'.$v['cart_info']['cart_info']['cart_num'].$unit_name.' 价格:'.$v['cart_info']['cart_info']['pay_price'].'元'; $product_info.="\r\n>$a"; } $arr = ["msgtype" => "markdown", "markdown" => ["content" => "有新的订单请及时跟踪