123456789101112131415161718192021 |
- <?php
-
-
- 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;
- }
-
- }
|