diff --git a/app/queue/redis/OrderWetchaPushSend.php b/app/queue/redis/OrderWetchaPushSend.php index 0f631512..2aaa19ec 100644 --- a/app/queue/redis/OrderWetchaPushSend.php +++ b/app/queue/redis/OrderWetchaPushSend.php @@ -43,7 +43,7 @@ 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']['pay_price'].'元'; + $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'].'元'; $product_info.="\r\n>$a"; } $arr = ["msgtype" => "markdown", "markdown" => ["content" => "有新的订单请及时跟踪