2026-03-21 02:55:24 +08:00
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
2026-03-29 11:22:52 +08:00
|
|
|
// | Author: ScottPan Team
|
2026-03-21 02:55:24 +08:00
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
namespace crmeb\services;
|
|
|
|
|
|
|
|
|
|
class ExpressService
|
|
|
|
|
{
|
|
|
|
|
protected static $api = [
|
|
|
|
|
'query' => 'https://wuliu.market.alicloudapi.com/kdi'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public static function query($no, $type = '')
|
|
|
|
|
{
|
|
|
|
|
$appCode = sys_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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|