Browse Source

修改tiktok的订单抓取报错

lvhao 1 week ago
parent
commit
fba00ba2ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/CoreApp/models/Model_apitt.php

+ 1 - 1
core/CoreApp/models/Model_apitt.php

@@ -221,7 +221,7 @@ function __construct(){
 		{
 		{
 			$line_items[] = [
 			$line_items[] = [
 				"id"=>$v["id"],
 				"id"=>$v["id"],
-				"package_id"=>$v['package_id'],
+				"package_id"=>empty($v['package_id'])?0:$v['package_id'],
 				'product_id'=>$v['product_id']
 				'product_id'=>$v['product_id']
 			];
 			];
 			if(isset($lpsq[$v['seller_sku']]))
 			if(isset($lpsq[$v['seller_sku']]))