|
@@ -69,6 +69,7 @@ class OrderExpress extends Base
|
|
public function push_express()
|
|
public function push_express()
|
|
{
|
|
{
|
|
$params_get = $this->request->get();
|
|
$params_get = $this->request->get();
|
|
|
|
+
|
|
$express = \app\api\model\order\OrderExpress::express($params_get);
|
|
$express = \app\api\model\order\OrderExpress::express($params_get);
|
|
// 快递100:
|
|
// 快递100:
|
|
//授权key:hygMqiJG7984
|
|
//授权key:hygMqiJG7984
|
|
@@ -99,9 +100,7 @@ class OrderExpress extends Base
|
|
foreach ($post_data as $k => $v) {
|
|
foreach ($post_data as $k => $v) {
|
|
$params .= "$k=" . urlencode($v) . "&"; //默认UTF-8编码格式
|
|
$params .= "$k=" . urlencode($v) . "&"; //默认UTF-8编码格式
|
|
}
|
|
}
|
|
- $post_data = substr($params, 0, -1);
|
|
|
|
- //echo '请求参数<br/>' . $post_data;
|
|
|
|
-
|
|
|
|
|
|
+ $post_data = substr($params, 0, -1);//echo '请求参数<br/>' . $post_data;
|
|
//发送post请求
|
|
//发送post请求
|
|
$ch = curl_init();
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
|
@@ -111,9 +110,9 @@ class OrderExpress extends Base
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
$result = curl_exec($ch);
|
|
$result = curl_exec($ch);
|
|
$data = json_decode($result);
|
|
$data = json_decode($result);
|
|
-
|
|
|
|
- echo '<br/><br/>返回数据<br/>';
|
|
|
|
- echo var_dump($data);
|
|
|
|
|
|
+//
|
|
|
|
+// echo '<br/><br/>返回数据<br/>';
|
|
|
|
+// echo var_dump($data);
|
|
|
|
|
|
$data->express_name = $express->express_name;
|
|
$data->express_name = $express->express_name;
|
|
$this->success('订单物流', $data);
|
|
$this->success('订单物流', $data);
|