lvhao преди 1 седмица
родител
ревизия
b5a0512179
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      core/CoreApp/models/Model_api.php

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

@@ -150,6 +150,7 @@ function __construct(){
 						$row_total = [];
 						$tax_amount = [];
 						$discount_amount = [];
+						$product_ids = [];
 						foreach($v['line_items'] as $key=>$val)
 						{
 							$productNames .= ($key > 0)?','.$val['title']:$val['title'];
@@ -160,6 +161,7 @@ function __construct(){
 							// $row_total[] = $val['price'];
 							// $tax_amount[] = 0;
 							// $discount_amount[] =$val['total_discount'];
+							$product_ids[] = $val['product_id'];
 
 						}
 						if(strpos($v['name'],"#M-") !== false){
@@ -365,6 +367,7 @@ function __construct(){
 						// 'row_total'=>implode(",",$row_total),
 						// 'tax_amount'=>implode(",",$tax_amount),
 						// 'discount_amount'=>implode(",",$discount_amount),
+						'product_ids' => implode(",",$product_ids),
 						'sku' => $skus,
 						'order_quantity' => $quantity,
 						'order_comment' => $khbz.addslashes($v['note']),//客户备注