2 Star 15 Fork 3

xiaogg / 快递查询

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 993 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaogg 提交于 2019-08-21 14:59 . 初始化
<?php
/**
* 汽车之家车型大全类库API 离线版
* @Copyright (C) 2019 比物福API All rights reserved.
* @License http://tool.bitefu.com
* @Author xiaogg <xiaogg@sina.cn>
*/
$getdata=$_REQUEST;if(empty($getdata))$getdata=$_POST?$_POST:$_GET;
if(empty($getdata['sn']) || empty($getdata['code'])){
header("content-Type: text/html; charset=utf-8");
echo '<html><head><title>免费快递查询api</title></head><body>参数 ?sn=快递单号&code=快递公司代码(kuaidi100)&type=0 json 1 url 2 html<br />支持get 和 post 请求';return;}
error_reporting("E_ALL");ini_set("display_errors", 1);header("content-Type: application/json; charset=utf-8");
require_once("include/function.php");
require_once("include/Kuaidi100.class.php");
$postdata=array_map('htmlspecialchars',$getdata);
if(empty($postdata['sn']) || empty($postdata['code']))$result=array('status'=>0,'info'=>'参数错误');
else{
$kd=new Kuaidi100();
$result=$kd->search($postdata);
}
ajaxReturn($result);
?>
PHP
1
https://gitee.com/web/express_inquiry.git
git@gitee.com:web/express_inquiry.git
web
express_inquiry
快递查询
master

搜索帮助