简要描述:

  • 通过省份ID获取市信息接口

请求域名:

  • http://dr.yunzshop.com

请求URL:

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

参数:

参数名 是否必须 类型 说明
parent_id int 省份ID

返回示例:

正确时返回:

  {
    "result": 1,
	 "msg":'',
    "data":  {
	      id: 1,
		  areaname: 北京市,
		  parentid: 110000,
		  level: 2
    }
  }

错误时返回:

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

返回参数说明:

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

备注:

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