zhangguidong %!s(int64=2) %!d(string=hai) anos
pai
achega
1c7ea99a44
Modificáronse 1 ficheiros con 5 adicións e 6 borrados
  1. 5 6
      application/api/controller/shop/OrderExpress.php

+ 5 - 6
application/api/controller/shop/OrderExpress.php

@@ -69,6 +69,7 @@ class OrderExpress extends Base
     public function push_express()
     {
         $params_get = $this->request->get();
+
         $express = \app\api\model\order\OrderExpress::express($params_get);
 //        快递100:
 //授权key:hygMqiJG7984
@@ -99,9 +100,7 @@ class OrderExpress extends Base
         foreach ($post_data as $k => $v) {
             $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请求
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_POST, 1);
@@ -111,9 +110,9 @@ class OrderExpress extends Base
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         $result = curl_exec($ch);
         $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;
         $this->success('订单物流', $data);