Merge pull request 'feat: 修改OrderWetchaPushSend类以优化商品信息格式' (#64) from dev into rose

Reviewed-on: #64
This commit is contained in:
mkm 2024-07-29 17:16:36 +08:00
commit 1f336cc6e2

View File

@ -43,7 +43,8 @@ class OrderWetchaPushSend implements Consumer
$cart_info=StoreOrderCartInfo::where('oid',$order['id'])->field('cart_info')->select();
$product_info="\r\n>商品信息:<font color=\"comment\">------------------</font>";
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><font color=\"comment\">$a</font>";
}
$arr = ["msgtype" => "markdown", "markdown" => ["content" => "有新的订单请及时跟踪