diff --git a/app/api/controller/StoreKeeper.php b/app/api/controller/StoreKeeper.php index 13027f55..603aabd9 100644 --- a/app/api/controller/StoreKeeper.php +++ b/app/api/controller/StoreKeeper.php @@ -215,7 +215,7 @@ class StoreKeeper extends Controller foreach ($value['goods'] as $good) { $copy_text .= "商品名称:{$good['goods_name']}\n"; if (!empty($good['goods_no'])) { - $copy_text .= "商品编号:{$good['goods_name']}\n"; + $copy_text .= "商品编号:{$good['goods_no']}\n"; } $copy_text .= "单价:{$good['goods_price']}\n"; $copy_text .= "数量:{$good['total_num']}\n"; @@ -223,7 +223,6 @@ class StoreKeeper extends Controller $copy_text .= "\n"; } if (!empty($value['address'])) { - $copy_text .= "\n"; $copy_text .= "\n"; $copy_text .= "收件人:{$value['address']['name']}\n"; $copy_text .= "电话:{$value['address']['phone']}\n"; diff --git a/app/store/controller/Order.php b/app/store/controller/Order.php index b5e8b0ad..33c40731 100644 --- a/app/store/controller/Order.php +++ b/app/store/controller/Order.php @@ -40,7 +40,7 @@ class Order extends Controller foreach ($value['goods'] as $good) { $copy_text .= "商品名称:{$good['goods_name']}\n"; if (!empty($good['goods_no'])) { - $copy_text .= "商品编号:{$good['goods_name']}\n"; + $copy_text .= "商品编号:{$good['goods_no']}\n"; } $copy_text .= "单价:{$good['goods_price']}\n"; $copy_text .= "数量:{$good['total_num']}\n"; @@ -48,7 +48,6 @@ class Order extends Controller $copy_text .= "\n"; } if (!empty($value['address'])) { - $copy_text .= "\n"; $copy_text .= "\n"; $copy_text .= "收件人:{$value['address']['name']}\n"; $copy_text .= "电话:{$value['address']['phone']}\n";