返回省市区接口及文......登陆

省市区接口及文档

不羁2019-02-27 10:13:41148
<?php
	include 'function.php';
	$list = select('php_area','*','status=1 AND type=1','sort desc');
	return_json(0,$list);
<?php
	include 'function.php';
	if(empty($_POST['area_id'])){
		return_json(1,'id不能为空');
	}
	$list = select('php_area','*','status=1 AND area_pid='.$_POST['area_id'],'sort desc');
	return_json(0,$list);


标题:省市区

地址:one.php

            two.php

传值:

         area_id    id        

返回值:

{

    "code": 0,

    "msg": "success",

    "data": {

    }

}

错误码:

1id不能为空


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送
  • PHP中文网