lvhao hace 14 horas
padre
commit
4f6b5c5ff1
Se han modificado 1 ficheros con 7 adiciones y 6 borrados
  1. 7 6
      core/CoreApp/models/Model_apitt.php

+ 7 - 6
core/CoreApp/models/Model_apitt.php

@@ -433,18 +433,19 @@ function __construct(){
 			$order_line_item_ids[] = $v['id'];
 		}
 		$post = [
-			"order_line_item_ids"=>["32132124331234"],
+			"order_line_item_ids"=>$order_line_item_ids,
 			"weight"=>[
-				"value"=>"0.4",
+				"value"=>"400",
     			"unit"=>"GRAM"
 			],
 			"dimension"=>[
-				"length"=> "0.3",
-				"width"=> "0.2",
-				"height"=> "0.3",
-				"unit"=> "INCH"
+				"length"=> "15",
+				"width"=> "10",
+				"height"=> "5",
+				"unit"=> "CM"
 			]
 		];
+		echo "<pre>";
 		var_dump(json_encode($post,JSON_UNESCAPED_UNICODE));
 		$queryParams['shop_cipher'] =$shop['shop_cipher'];
 		$queryParams['app_key'] =$shop['app_key'];