wupengfei 3 年之前
父節點
當前提交
0db1c0aebf
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 3
      application/api/controller/General.php
  2. 1 1
      application/common.php

+ 1 - 3
application/api/controller/General.php

@@ -146,10 +146,8 @@ class General extends Base
      * @return name:logo type:string default:-- desc:快递公司LOGO
      */
     public function deliveryDetails(){
-        $company_id = input('get.company_id');
         $send_no = input('get.send_no');
-        $company_info = Db::table('store_express_company')->find($company_id);
-        $data = get_delivery($send_no,$company_info['express_code']);
+        $data = get_delivery($send_no);
         $this->success('ok',$data);
     }
 

+ 1 - 1
application/common.php

@@ -211,7 +211,7 @@ function http_curl($url,$type='get',$arr=''){
 
 
 // 获取物流信息
-function get_delivery($send_no = 'JD0053309649641',$express_code='jd'){
+function get_delivery($send_no = 'JD0053309649641',$express_code=''){
         error_reporting(E_ALL || ~E_NOTICE);
         $AppKey     = 204002714;
         $AppSecret  ='q4MgT64XnevYnpZYrRBjYvmBE9dl7jXb';