fix
This commit is contained in:
parent
92cdd67f3a
commit
278835c5d4
@ -228,7 +228,7 @@ class DoubanApi(metaclass=Singleton):
|
||||
ua=settings.USER_AGENT,
|
||||
session=self._session,
|
||||
).post_res(url=req_url, data=params)
|
||||
if resp.status_code == 400 and "rate_limit" in resp.text:
|
||||
if resp is not None and resp.status_code == 400 and "rate_limit" in resp.text:
|
||||
return resp.json()
|
||||
return resp.json() if resp else {}
|
||||
|
||||
|
@ -131,10 +131,11 @@ class _PluginBase(metaclass=ABCMeta):
|
||||
{
|
||||
"refresh": 10, // 自动刷新时间,单位秒
|
||||
"border": True, // 是否显示边框,默认True,为False时取消组件边框和边距,由插件自行控制
|
||||
"subtitle": "子标题", // 组件子标题,缺省时不展示子标题
|
||||
}
|
||||
3、页面配置使用Vuetify组件拼装,参考:https://vuetifyjs.com/
|
||||
|
||||
输入参数中:user_agent:浏览器UA
|
||||
kwargs参数可获取的值:1、user_agent:浏览器UA
|
||||
"""
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user