|
|
@ -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) { |
|
|
|