优化天气插件
This commit is contained in:
@@ -172,7 +172,7 @@ class WeatherPlugin(MessagePluginInterface):
|
||||
params=params) as response:
|
||||
geoapi_json = await response.json()
|
||||
await conn_ssl.close()
|
||||
|
||||
self.LOG.debug(f"geoapi_json: {geoapi_json}")
|
||||
if geoapi_json['code'] == '404':
|
||||
return "\n⚠️查无此地!"
|
||||
elif geoapi_json['code'] != '200':
|
||||
|
||||
Reference in New Issue
Block a user