mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
🐛 不使用 updateAt 作为 Arknights 公告的 get_date 返回值
This commit is contained in:
@@ -82,7 +82,11 @@ class Arknights(NewMessage):
|
||||
return post.cid
|
||||
|
||||
def get_date(self, post: BulletinListItem) -> Any:
|
||||
return post.updated_at
|
||||
# 为什么不使用post.updated_at?
|
||||
# update_at的时间是上传鹰角服务器的时间,而不是公告发布的时间
|
||||
# 也就是说鹰角可能会在中午就把晚上的公告上传到服务器,但晚上公告才会显示,但是update_at就是中午的时间不会改变
|
||||
# 如果指定了get_date,那么get_date会被优先使用, 并在获取到的值超过2小时时忽略这条post,导致其不会被发送
|
||||
return None
|
||||
|
||||
def get_category(self, _) -> Category:
|
||||
return Category(1)
|
||||
|
||||
Reference in New Issue
Block a user