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.

ExpressService.php 517B

123456789101112131415161718192021
  1. <?php
  2. namespace crmeb\services;
  3. class ExpressService
  4. {
  5. protected static $api = [
  6. 'query' => 'https://wuliu.market.alicloudapi.com/kdi'
  7. ];
  8. public static function query($no, $type = '')
  9. {
  10. $appCode = sys_config('system_express_app_code');
  11. if (!$appCode) return false;
  12. $res = HttpService::getRequest(self::$api['query'], compact('no', 'type'), ['Authorization:APPCODE ' . $appCode]);
  13. $result = json_decode($res, true) ?: false;
  14. return $result;
  15. }
  16. }