mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-07 12:43:26 +08:00
🐛 修复gs关闭自动米游币
(#502)
This commit is contained in:
parent
9c05a84f5a
commit
490677b4e9
@ -10,13 +10,13 @@ from ..genshinuid_config.gs_config import gsconfig
|
||||
|
||||
async def all_daily_mihoyo_bbs_coin():
|
||||
sqla = get_sqla('TEMP')
|
||||
user_list = await sqla.get_all_user()
|
||||
vaild_user_list = [_u for _u in user_list if _u.bbs_switch and _u.stoken]
|
||||
users = await sqla.get_all_user()
|
||||
vaild_list = [_u for _u in users if _u.bbs_switch != 'off' and _u.stoken]
|
||||
im_success = 0
|
||||
im_failed = 0
|
||||
im_failed_str = ''
|
||||
im_private = {}
|
||||
for user in vaild_user_list:
|
||||
for user in vaild_list:
|
||||
logger.info(f'[米游币任务]正在执行{user.uid}')
|
||||
await asyncio.sleep(5 + random.randint(1, 3))
|
||||
if user.stoken is None:
|
||||
|
@ -5,12 +5,13 @@ MiniGG Enka 加速服务不在此模块内。
|
||||
'''
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import warnings
|
||||
from enum import Enum
|
||||
from typing import Any, Dict, List, Union, Literal, Optional, cast, overload
|
||||
|
||||
from httpx import AsyncClient
|
||||
import json
|
||||
|
||||
from ..types import AnyDict
|
||||
from .exception import MiniggNotFoundError
|
||||
from .models import (
|
||||
|
Loading…
x
Reference in New Issue
Block a user