浏览代码

提交数据

lvhao 3 月之前
父节点
当前提交
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);