lvhao 1 місяць тому
батько
коміт
79c427ed12
1 змінених файлів з 6 додано та 11 видалено
  1. 6 11
      core/CoreApp/models/Model_api.php

+ 6 - 11
core/CoreApp/models/Model_api.php

@@ -116,8 +116,8 @@ function __construct(){
 		{
 				//limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_max=2025-07-16T00:00:00Z&gateway=klarna
 			    //limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_min=2025-07-16T00:00:00Z&gateway=klarna
-				$post['shopify'] = $shopapi.'?limit=10&id=5907832471740';
-				// $post['shopify'] = $shopapi.'?limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_min='.date('c',time()-3600*24*2);//?status=any所有订单 &limit=200每页多少单
+				// $post['shopify'] = $shopapi.'?limit=10&id=5907832471740';
+				$post['shopify'] = $shopapi.'?limit=100&fulfillment_status=unshipped&financial_status=paid&status=open&created_at_min='.date('c',time()-3600*24*2);//?status=any所有订单 &limit=200每页多少单
 				
 				$ch = curl_init();
 				curl_setopt($ch,CURLOPT_URL,'https://edm.alipearl.net/soapapi.php');
@@ -153,9 +153,9 @@ function __construct(){
 							$quantity .= floor($val['quantity']).';';
 							$parameters[] = $val['variant_title'];
 						}
-						// if(strpos($v['name'],"#M-") !== false){
-						// 	continue;
-						// }
+						if(strpos($v['name'],"#M-") !== false){
+							continue;
+						}
 						if(isset($v['gateway'])){
 							if(stripos($v['gateway'],'shopify_') !== false)
 							{
@@ -876,12 +876,7 @@ function __construct(){
 		$post['source'] = $source;//订单类型
 		$post['type'] = 1;//发货仓库
 		$post['capital'] = 3;//资金支付状况,全部付款
-		if($v['order_id'] == "#M-600171947"){
-			$post['number'] = "Y-50715-011";//编号
-		}else{
-			$post['number'] = $shop['shortname'].'-'.substr(date('ymd',$time),1).'-'.(substr(strval($num+1+1000),1,3));//编号
-		}
-		
+		$post['number'] = $shop['shortname'].'-'.substr(date('ymd',$time),1).'-'.(substr(strval($num+1+1000),1,3));//编号
 		if($shop['program'] == 'Shopify'){
 			$post['orderinfo'] = $v['order_id'];//订单号
 		}else{