wang hou sheng 7 months ago
parent 8fb6cd8220
commit c7633e7828
  1. 12
      app/api/controller/StoreKeeper.php
  2. 12
      app/store/controller/Order.php

@ -217,19 +217,21 @@ class StoreKeeper extends Controller
if (!empty($good['goods_no'])) { if (!empty($good['goods_no'])) {
$copy_text .= "商品编号:{$good['goods_name']}\n"; $copy_text .= "商品编号:{$good['goods_name']}\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";
$copy_text .= "商品总价:{$good['total_price']}\n"; $copy_text .= "总价:{$good['total_price']}\n";
$copy_text .= "\n"; $copy_text .= "\n";
} }
if (!empty($value['address'])) { if (!empty($value['address'])) {
$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";
$address = ''; $address = '';
if (!empty($value['address']['region'])) { if (!empty($value['address']['region'])) {
$address = $value['address']['region']['province'] . $value['address']['region']['city'] . $value['address']['region']['region']; $address = $value['address']['region']['province'] . $value['address']['region']['city'] . $value['address']['region']['region'];
} }
$copy_text .= "收件地址:$address{$value['address']['detail']}\n"; $copy_text .= "地址:$address{$value['address']['detail']}\n";
} }
$list['data'][$key]['copy_text'] = $copy_text; $list['data'][$key]['copy_text'] = $copy_text;
} }

@ -42,19 +42,21 @@ class Order extends Controller
if (!empty($good['goods_no'])) { if (!empty($good['goods_no'])) {
$copy_text .= "商品编号:{$good['goods_name']}\n"; $copy_text .= "商品编号:{$good['goods_name']}\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";
$copy_text .= "商品总价:{$good['total_price']}\n"; $copy_text .= "总价:{$good['total_price']}\n";
$copy_text .= "\n"; $copy_text .= "\n";
} }
if (!empty($value['address'])) { if (!empty($value['address'])) {
$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";
$address = ''; $address = '';
if (!empty($value['address']['region'])) { if (!empty($value['address']['region'])) {
$address = $value['address']['region']['province'] . $value['address']['region']['city'] . $value['address']['region']['region']; $address = $value['address']['region']['province'] . $value['address']['region']['city'] . $value['address']['region']['region'];
} }
$copy_text .= "收件地址:$address{$value['address']['detail']}\n"; $copy_text .= "地址:$address{$value['address']['detail']}\n";
} }
$data[$key]['copy_text'] = $copy_text; $data[$key]['copy_text'] = $copy_text;
if ($value['delivery_type'] == 10) { if ($value['delivery_type'] == 10) {

Loading…
Cancel
Save