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.
25 lines
453 B
25 lines
453 B
2 years ago
|
<?php
|
||
|
|
||
|
namespace Plugins\KuaiDi100;
|
||
|
|
||
|
/**
|
||
|
* Class KuaiDi100
|
||
|
*/
|
||
|
class KuaiDi100
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* 实时查询
|
||
|
*
|
||
|
* @param string $num 快递单号
|
||
|
* @param string $com 快递公司编码
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public static function syncQuery(string $num, string $com = 'zhongtong'): array
|
||
|
{
|
||
|
$url = "https://poll.kuaidi100.com/poll/query.do";
|
||
|
|
||
|
return Client::post($url, compact('num', 'com'));
|
||
|
}
|
||
|
}
|