开通城市时切换省
<p><strong>简要描述:</strong> </p>
<ul>
<li>开通城市时切换省</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>OpenCity/getAreas</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>省id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"respData": {
"city": [
{
"id": "50",
"name": "朔州市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "51",
"name": "忻州市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "52",
"name": "太原市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "53",
"name": "大同市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "54",
"name": "阳泉市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "55",
"name": "晋中市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "56",
"name": "长治市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "57",
"name": "晋城市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "58",
"name": "临汾市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "59",
"name": "吕梁市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
},
{
"id": "60",
"name": "运城市",
"parent_id": "4",
"level": "2",
"is_outside": "1"
}
]
},
"respCode": 1000,
"respContent": "请求成功",
"redirect": "",
"respIdent": 1,
"respUrl": ""
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!</p>