mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
删除无用代码
This commit is contained in:
parent
3e65db5c84
commit
4d52b5c9f2
@ -27,20 +27,5 @@ class JobQueue(BasePlugins):
|
|||||||
Log.info("初始化浏览器成功")
|
Log.info("初始化浏览器成功")
|
||||||
Log.info("初始化Job成功")
|
Log.info("初始化Job成功")
|
||||||
|
|
||||||
async def post_job(self, _: CallbackContext) -> None:
|
async def check_cookie(self, _: CallbackContext):
|
||||||
while True:
|
pass
|
||||||
new_post_id_list_cache: List[int] = []
|
|
||||||
new_list = await self.mihoyo.get_new_list(2, 2)
|
|
||||||
if new_list.code == 0:
|
|
||||||
for post in new_list.data["list"]:
|
|
||||||
post_id = post["post"]["post_id"]
|
|
||||||
new_post_id_list_cache.append(post_id)
|
|
||||||
new_list = await self.mihoyo.get_new_list(2, 3)
|
|
||||||
if new_list.code == 0:
|
|
||||||
for post in new_list.data["list"]:
|
|
||||||
post_id = post["post"]["post_id"]
|
|
||||||
new_post_id_list_cache.append(post_id)
|
|
||||||
if len(self.new_post_id_list_cache) == 0:
|
|
||||||
return
|
|
||||||
|
|
||||||
await asyncio.sleep(60)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user