new files
This commit is contained in:
29
pro_v3.5.1/crmeb/services/ExpressService.php
Normal file
29
pro_v3.5.1/crmeb/services/ExpressService.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user