mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🎨 修改查询当前状态插件图片缓存时间
This commit is contained in:
parent
f00c4c0f11
commit
51a066aff9
@ -24,10 +24,10 @@ class DailyNote(Plugin, BasePlugin):
|
||||
"""每日便签"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
user_service: UserService = None,
|
||||
cookies_service: CookiesService = None,
|
||||
template_service: TemplateService = None,
|
||||
self,
|
||||
user_service: UserService = None,
|
||||
cookies_service: CookiesService = None,
|
||||
template_service: TemplateService = None,
|
||||
):
|
||||
self.template_service = template_service
|
||||
self.cookies_service = cookies_service
|
||||
@ -86,7 +86,7 @@ class DailyNote(Plugin, BasePlugin):
|
||||
"transformer_recovery_time": transformer_recovery_time,
|
||||
}
|
||||
render_result = await self.template_service.render(
|
||||
"genshin/daily_note/daily_note.html", daily_data, {"width": 600, "height": 548}, full_page=False
|
||||
"genshin/daily_note/daily_note.html", daily_data, {"width": 600, "height": 548}, full_page=False, ttl=8 * 60
|
||||
)
|
||||
return render_result
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user