You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
629 B
29 lines
629 B
10 months ago
|
<?php
|
||
|
/**
|
||
|
*
|
||
|
* @author: xaboy<365615158@qq.com>
|
||
|
* @day: 2018/01/10
|
||
|
*/
|
||
|
|
||
|
namespace Api;
|
||
|
|
||
|
|
||
|
use service\HttpService;
|
||
|
use service\SystemConfigService;
|
||
|
|
||
|
class Express
|
||
|
{
|
||
|
protected static $api = [
|
||
|
'query'=>'https://wuliu.market.alicloudapi.com/kdi'
|
||
|
];
|
||
|
|
||
|
public static function query($no,$type = '')
|
||
|
{
|
||
|
$appCode = SystemConfigService::config('system_express_app_code');
|
||
|
if(!$appCode) return false;
|
||
|
$res = HttpService::getRequest(self::$api['query'],compact('no','type'),['Authorization:APPCODE '.$appCode]);
|
||
|
$result = json_decode($res,true)?:false;
|
||
|
return $result;
|
||
|
}
|
||
|
|
||
|
}
|