wang hou sheng 7 months ago
parent 3944de3dc0
commit 820655e608
  1. 3
      app/api/controller/StoreKeeper.php
  2. 3
      app/store/controller/Order.php

@ -215,7 +215,7 @@ class StoreKeeper extends Controller
foreach ($value['goods'] as $good) { foreach ($value['goods'] as $good) {
$copy_text .= "商品名称:{$good['goods_name']}\n"; $copy_text .= "商品名称:{$good['goods_name']}\n";
if (!empty($good['goods_no'])) { 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['goods_price']}\n";
$copy_text .= "数量:{$good['total_num']}\n"; $copy_text .= "数量:{$good['total_num']}\n";
@ -223,7 +223,6 @@ class StoreKeeper extends Controller
$copy_text .= "\n"; $copy_text .= "\n";
} }
if (!empty($value['address'])) { if (!empty($value['address'])) {
$copy_text .= "\n";
$copy_text .= "\n"; $copy_text .= "\n";
$copy_text .= "收件人:{$value['address']['name']}\n"; $copy_text .= "收件人:{$value['address']['name']}\n";
$copy_text .= "电话:{$value['address']['phone']}\n"; $copy_text .= "电话:{$value['address']['phone']}\n";

@ -40,7 +40,7 @@ class Order extends Controller
foreach ($value['goods'] as $good) { foreach ($value['goods'] as $good) {
$copy_text .= "商品名称:{$good['goods_name']}\n"; $copy_text .= "商品名称:{$good['goods_name']}\n";
if (!empty($good['goods_no'])) { 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['goods_price']}\n";
$copy_text .= "数量:{$good['total_num']}\n"; $copy_text .= "数量:{$good['total_num']}\n";
@ -48,7 +48,6 @@ class Order extends Controller
$copy_text .= "\n"; $copy_text .= "\n";
} }
if (!empty($value['address'])) { if (!empty($value['address'])) {
$copy_text .= "\n";
$copy_text .= "\n"; $copy_text .= "\n";
$copy_text .= "收件人:{$value['address']['name']}\n"; $copy_text .= "收件人:{$value['address']['name']}\n";
$copy_text .= "电话:{$value['address']['phone']}\n"; $copy_text .= "电话:{$value['address']['phone']}\n";

Loading…
Cancel
Save