Commit 33182f9c authored by 杨培's avatar 杨培

新增 Express::queryFull() 服务

parent b73ae482
......@@ -34,7 +34,7 @@ Member::setDebug();
//print_r($rt);
$a = microtime(true);
$ret = Express::query('4302644653361', 'yd');
$ret = Express::queryFull('4302644653361', 'yd');
//$ret = Express::company();
$t = bcsub(microtime(true), $a, 4);
print_r($ret);
......
......@@ -31,6 +31,23 @@ class Express extends Client
return self::invoke('/express/query', func_get_args());
}
/**
* 查询物流详情
*
* @param string $nu 快递单号
* @param string $com 公司内部快递公司代号
* @return array|string 成功返回状态与物流记录等数组,失败返回错误文本
* 返回的数组包含四个字段:
* state: 物流状态码
* state_name: 物流状态对应字符标记
* state_orig: 物流接口的原始状态码
* records: 物流记录详情
*/
public static function queryFull($nu, $com)
{
return self::invoke('/express/queryFull', func_get_args());
}
/**
* 获取支持的快递公司代码列表
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment