lvhao hace 1 mes
padre
commit
2f66e4b45d
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      core/CoreApp/models/Model_api.php

+ 13 - 0
core/CoreApp/models/Model_api.php

@@ -146,12 +146,21 @@ function __construct(){
 						$skus = '';
 						$quantity = '';
 						$thislink = '';
+						$price = [];
+						$row_total = [];
+						$tax_amount = [];
+						$discount_amount = [];
 						foreach($v['line_items'] as $key=>$val)
 						{
 							$productNames .= ($key > 0)?','.$val['name']:$val['name'];
 							$skus .= ($key > 0)?','.$val['sku']:$val['sku'];
 							$quantity .= floor($val['quantity']).';';
 							$parameters[] = $val['variant_title'];
+							// $price[] = $val['price_set']['shop_money']['amount'];
+							// $row_total[] = $val['price'];
+							// $tax_amount[] = 0;
+							// $discount_amount[] =$val['total_discount'];
+
 						}
 						if(strpos($v['name'],"#M-") !== false){
 							continue;
@@ -346,6 +355,10 @@ function __construct(){
 						'grand_total' => $v['total_price_set']['shop_money']['amount'],//币种支付金额
 						'isstatus' => 'processing',//$v['order_status'],//默认processing待发货状态
 						'isparameter' => implode(';',$parameters),
+						// 'price'=>implode(",",$price),
+						// 'row_total'=>implode(",",$row_total),
+						// 'tax_amount'=>implode(",",$tax_amount),
+						// 'discount_amount'=>implode(",",$discount_amount),
 						'sku' => $skus,
 						'order_quantity' => $quantity,
 						'order_comment' => $khbz.addslashes($v['note']),//客户备注