API

凤凰投注开放其他


获取城市

<p><strong>简要描述:</strong> </p> <ul> <li>获取城市</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xxx.xxx.com/user/get_cities</code></li> </ul> <p><strong>请求方式:</strong> -POST Content-Type: application/json;charset=utf-8</p> <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;">pid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>省份id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> //成功 { "code": 0, "msg": 2006, "data": [ { "id": "110100", "name": "东城区", "pid": "110000" }, { "id": "110200", "name": "西城区", "pid": "110000" }, { "id": "110500", "name": "朝阳区", "pid": "110000" } ... ] } //失败 { "code": 1, "msg": 7001 }</code></pre> <p><strong>备注</strong></p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML