-

+
暂无查询记录
diff --git a/extend/Api/Express.php b/extend/Api/Express.php
index c9e26bfe..334fd070 100644
--- a/extend/Api/Express.php
+++ b/extend/Api/Express.php
@@ -14,26 +14,16 @@ use service\SystemConfigService;
class Express
{
protected static $api = [
- 'query'=>'http://jisukdcx.market.alicloudapi.com/express/query',
- 'type'=>'http://jisukdcx.market.alicloudapi.com/express/type'
+ 'query'=>'https://wuliu.market.alicloudapi.com/kdi'
];
- public static function query($number,$type = 'auto')
+ public static function query($no,$type = '')
{
$appCode = SystemConfigService::config('system_express_app_code');
if(!$appCode) return false;
- //WIKI https://market.aliyun.com/products/57126001/cmapi011120.html?spm=5176.2020520132.101.4.TYdLsb#sku=yuncode512000008
- $res = HttpService::getRequest(self::$api['query'],compact('number','type'),['Authorization:APPCODE '.$appCode]);
+ $res = HttpService::getRequest(self::$api['query'],compact('no','type'),['Authorization:APPCODE '.$appCode]);
$result = json_decode($res,true)?:false;
return $result;
}
- public static function type()
- {
- $appCode = SystemConfigService::config('system_express_app_code');
- if(!$appCode) return false;
- $res = HttpService::getRequest(self::$api['type'],[],['Authorization:APPCODE '.$appCode]);
- $result = json_decode($res,true)?:false;
- return $result;
- }
}
\ No newline at end of file