🎨 修改每日素材表插件图片缓存时间

This commit is contained in:
洛水居室 2022-10-22 17:12:39 +08:00
parent 51a066aff9
commit ddfbcfa5c9
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -286,14 +286,14 @@ class DailyMaterial(Plugin, BasePlugin):
{"data": render_data}, {"data": render_data},
{"width": 1164, "height": 500}, {"width": 1164, "height": 500},
file_type=file_type, file_type=file_type,
ttl=7 * 24 * 60 * 60, ttl=30 * 24 * 60 * 60,
), ),
self.template_service.render( # 渲染武器素材页 self.template_service.render( # 渲染武器素材页
"genshin/daily_material/weapon.html", "genshin/daily_material/weapon.html",
{"data": render_data}, {"data": render_data},
{"width": 1164, "height": 500}, {"width": 1164, "height": 500},
file_type=file_type, file_type=file_type,
ttl=7 * 24 * 60 * 60, ttl=30 * 24 * 60 * 60,
), ),
) )