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" => "有新的订单请及时跟踪