简要描述:

请求域名:

  • http://xx.com

请求URL:

POST:plugin.agent-enquiry.Backend.controllers.tag.get-area

参数:

参数名 是否必须 类型 说明
parent_id int 父ID,省就给0

返回示例:

正确时返回:

{
result: 1,
msg: "成功",
data: - [
- {
id: 110000,
areaname: "北京",
parentid: 0,
level: 1,
children:[],
has_many_tag: - [
- {
id: 1,
uniacid: 6,
tag_id: 1,
area_id: 110000,
level: 1,
created_at: "1970-01-01 08:00:01",
updated_at: "1970-01-01 08:00:01"
}
]
},
- {
id: 120000,
areaname: "天津",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 130000,
areaname: "河北省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 140000,
areaname: "山西省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 150000,
areaname: "内蒙古自治区",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 210000,
areaname: "辽宁省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 220000,
areaname: "吉林省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 230000,
areaname: "黑龙江省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 310000,
areaname: "上海",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 320000,
areaname: "江苏省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 330000,
areaname: "浙江省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 340000,
areaname: "安徽省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 350000,
areaname: "福建省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 360000,
areaname: "江西省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 370000,
areaname: "山东省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 410000,
areaname: "河南省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 420000,
areaname: "湖北省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 430000,
areaname: "湖南省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 440000,
areaname: "广东省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 450000,
areaname: "广西壮族自治区",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 460000,
areaname: "海南省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 500000,
areaname: "重庆",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 510000,
areaname: "四川省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 520000,
areaname: "贵州省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 530000,
areaname: "云南省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 540000,
areaname: "西藏自治区",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 610000,
areaname: "陕西省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 620000,
areaname: "甘肃省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 630000,
areaname: "青海省",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 640000,
areaname: "宁夏回族自治区",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 650000,
areaname: "新疆维吾尔自治区",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 710000,
areaname: "台湾",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 810000,
areaname: "香港特别行政区",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
},
- {
id: 820000,
areaname: "澳门特别行政区",
parentid: 0,
level: 1,
children:[],
has_many_tag:[]
}
]
}
-Source Online

返回参数说明:

参数名 类型 说明
result int 0:失败,1:成功
msg string 提示消息
data array 返回数据

返回参数 data 说明:

参数名 类型 说明
id string 城市ID,parent_id 传这个值!
areaname string 区域名称
level string 省市区街道 1234
has_many_tag array 标签区域关联 (有这个值就不给选!)

备注: