|
@@ -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";
|
|
|
- $path = "/kdi";
|
|
|
- $method = "GET";
|
|
|
- $appcode = "43e8ad1f62ed42d8ac3c724d58e0e794";
|
|
|
- $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;
|