文档
测试

获取省份、城市

POST
http://app.test.babazhixing.com/Statistical/area_city

请求头

参数名
类型
描述
必填
token
string
示例:uyhfuwhui2121
必填

请求参数

参数名
类型
描述
必填
areaid
int
示例:0 ,0:获取省份列表,根据对应的省份id获取城市列表
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
data
array
所有数据
必填
cityid
int
省份或者城市的id
必填
city
string
省份或者城市的名称
必填
msg
string
任何信息
必填

说明 / 示例

## 返回示例 { "code": 200, "data": [ { "cityid": 1, "city": " 湖南省(湘) " }, { "cityid": 16, "city": " 湖北省(鄂) " }, { "cityid": 34, "city": " 河南省(豫) " }, { "cityid": 53, "city": " 河北省(冀) " }, { "cityid": 66, "city": " 云南省(云) " }, { "cityid": 84, "city": " 辽宁省(辽) " }, { "cityid": 99, "city": " 黑龙江省(黑) " }, { "cityid": 115, "city": " 安徽省(皖) " }, { "cityid": 133, "city": " 山东省(鲁) " }, { "cityid": 154, "city": " 新疆维吾尔(新) " }, { "cityid": 171, "city": " 江苏省(苏) " }, { "cityid": 185, "city": " 浙江省(浙) " }, { "cityid": 197, "city": " 江西省(赣) " }, { "cityid": 210, "city": " 广西壮族(桂) " }, { "cityid": 226, "city": " 广东省(粤) " }, { "cityid": 251, "city": " 甘肃省(甘) " }, { "cityid": 266, "city": " 山西省(晋) " }, { "cityid": 278, "city": " 内蒙古(蒙) " }, { "cityid": 291, "city": " 陕西省(陕) " }, { "cityid": 303, "city": " 吉林省(吉) " }, { "cityid": 314, "city": " 福建省(闽) " }, { "cityid": 325, "city": " 贵州省(贵) " }, { "cityid": 335, "city": " 四川省(川) " }, { "cityid": 359, "city": " 青海省(青) " }, { "cityid": 368, "city": " 西藏(藏) " }, { "cityid": 378, "city": " 海南省(琼) " }, { "cityid": 384, "city": " 宁夏回族(宁) " }, { "cityid": 390, "city": " 重庆市(渝) " }, { "cityid": 397, "city": " 北京市(京) " }, { "cityid": 411, "city": " 天津市( 津) " }, { "cityid": 420, "city": " 上海市(沪) " } ], "msg": "" }