1.首先注册快递100账号
2.代码实现
public function doQuery($com,$num,$phone){
//参数设置
$key = '************'; //客户授权key
$customer = '************'; //查询公司编号
$param = array (
'com' => $com, //快递公司编码
'num' => $num, //快递单号
'phone' => $phone, //手机号
'from' => '', //出发地城市
'to' => '', //目的地城市
'resultv2' => '1' //开启行政区域解析
);
//请求参数
$post_data =