lvhao 3 месяцев назад
Родитель
Сommit
042c45a757
1 измененных файлов с 15 добавлено и 4 удалено
  1. 15 4
      core/CoreApp/models/Model_apismt.php

+ 15 - 4
core/CoreApp/models/Model_apismt.php

@@ -140,10 +140,21 @@ function __construct(){
         //设置post数据
 		$post = array();
 		$post['order_out'] = 1;
-		$post['whlabel'] = $whlabel;
-		$post['all'] = $all;
-		$post['orderinfo'] = $orderinfo;
-		$post['ex'] = $ex;
+
+		$post['sub_trade_order_list'] = [
+			[
+				"send_type"=>$all,
+				"shipment_list"=>[
+					"logistics_no"=>$whlabel,
+					"service_name"=> $ex,
+				],
+				'sub_trade_order_index'=>1,
+			]
+		];
+		$post['old_logistics_no'] = $whlabel;
+		$post['trade_order_id']=$orderinfo;
+		$post['old_service_name']=$ex;
+		
 		$post['code'] = $code;
         curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
 		$res = curl_exec($ch);