wupengfei 2 lat temu
rodzic
commit
8959991eb3
2 zmienionych plików z 1 dodań i 35 usunięć
  1. 1 1
      .idea/workspace.xml
  2. 0 34
      application/api/controller/Qc.php

+ 1 - 1
.idea/workspace.xml

@@ -215,7 +215,7 @@
       <workItem from="1673052319155" duration="16867000" />
       <workItem from="1673226266250" duration="24113000" />
       <workItem from="1673312216057" duration="9503000" />
-      <workItem from="1673399011843" duration="15600000" />
+      <workItem from="1673399011843" duration="16407000" />
     </task>
     <servers />
   </component>

+ 0 - 34
application/api/controller/Qc.php

@@ -14,40 +14,6 @@ use Easemob\User;
 
 class Qc extends Base {
 
-
-    function express_search(){
-        $type = input('type',1);
-        $id = input('id');
-        $order_info['express_send_no'] = 'JD0094442235226';
-        $host = "https://wuliu.market.alicloudapi.com";//api访问链接
-        $path = "/kdi";//API访问后缀
-        $method = "GET";
-        $appcode = "43e8ad1f62ed42d8ac3c724d58e0e794";//开通服务后 买家中心-查看AppCode
-        $headers = array();
-        array_push($headers, "Authorization:APPCODE " . $appcode);
-        $querys = "no=".$order_info['express_send_no'];  //参数写在这里
-        $bodys = "";
-        $url = $host . $path . "?" . $querys;
-        $curl = curl_init();
-        curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
-        curl_setopt($curl, CURLOPT_URL, $url);
-        curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
-        curl_setopt($curl, CURLOPT_FAILONERROR, false);
-        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
-        curl_setopt($curl, CURLOPT_HEADER, false);
-        if (1 == strpos("$" . $host, "https://")) {
-            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
-            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
-        }
-        $out_put = curl_exec($curl);
-        if($out_put){
-            $res = json_decode($out_put,true);
-            $this->success('获取成功',$res['result']);
-        }else{
-            $this->success('暂无快递信息');
-        }
-    }
-
     public function index()
     {
         $type = 1;