简要描述:

  • 通过市ID获取区信息接口

请求域名:

  • http://dr.yunzshop.com

请求URL:

GET/app/index.php?i=2&c=entry&do=shop&m=yun_shop&route=member.member.getAreasByCity

参数:

参数名 是否必须 类型 说明
parent_id int 城市ID

返回示例:

正确时返回:

  {
    "result": 1,
	 "msg":'',
    "data":  {
	      id: 1,
		  areaname: 东城区,
		  parentid: 110100,
		  level: 3
    }
  }

错误时返回:

  {
    "status": 0,
	"msg": "error info",
    "data": {
	   '查无数据'
	}
  }

返回参数说明:

参数名 类型 说明
id int 编号
areaname string 区名称
parentid int 城市ID
level int 等级

备注:

  • 更多返回错误代码请看首页的错误代码描述