获取天气信息
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://api.justwen233.cn/wen/getweather</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">city</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 201,
"result": {
"code": 0,
"message": "查询成功",
"data": {
"city": "合浦",
"realtime": {
"temperature": "27",
"humidity": "81",
"info": "小雨",
"wid": "07",
"direct": "南风",
"power": "3级",
"aqi": "19"
},
"future": [
{
"date": "2022-05-10",
"temperature": "24\/28℃",
"weather": "阵雨",
"wid": {
"day": "03",
"night": "03"
},
"direct": "南风"
},
{
"date": "2022-05-11",
"temperature": "24\/28℃",
"weather": "阵雨转中雨",
"wid": {
"day": "03",
"night": "08"
},
"direct": "南风"
},
{
"date": "2022-05-12",
"temperature": "24\/28℃",
"weather": "中雨转大雨",
"wid": {
"day": "08",
"night": "09"
},
"direct": "南风"
},
{
"date": "2022-05-13",
"temperature": "23\/27℃",
"weather": "大雨转中雨",
"wid": {
"day": "09",
"night": "08"
},
"direct": "南风转东北风"
},
{
"date": "2022-05-14",
"temperature": "20\/27℃",
"weather": "中雨",
"wid": {
"day": "08",
"night": "08"
},
"direct": "东南风转东风"
}
]
}
}
}
</code></pre>