瀏覽代碼

处理因为导入单的问题

lvhao 1 月之前
父節點
當前提交
a32f6f8b25
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      core/CoreApp/models/Model_api.php

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

@@ -150,6 +150,9 @@ function __construct(){
 							$quantity .= floor($val['quantity']).';';
 							$parameters[] = $val['variant_title'];
 						}
+						if(strpos($v['name'],"#M-") !== false){
+							continue;
+						}
 						if(isset($v['gateway'])){
 							if(stripos($v['gateway'],'shopify_') !== false)
 							{
@@ -307,9 +310,7 @@ function __construct(){
 						{
 							$authorid = $this->authorid($link,$shop['tweak']);
 						}
-						if(strpos($v['name'],"#M-") !== false){
-							continue;
-						}
+						
 						$thatDayOrder[] = array(
 						'order_id' => $v['name'],//订单号
 						'product_name' => $productNames,//产品标题