🐛 Fix BindAccountPlugin has no attribute player_info_service

This commit is contained in:
洛水居室 2023-03-14 16:23:05 +08:00
parent 221dffef1b
commit c0fbabaf14
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -13,7 +13,7 @@ from core.plugin import Plugin, conversation, handler
from core.services.cookies.error import TooManyRequestPublicCookies from core.services.cookies.error import TooManyRequestPublicCookies
from core.services.cookies.services import CookiesService, PublicCookiesService from core.services.cookies.services import CookiesService, PublicCookiesService
from core.services.players.models import PlayersDataBase as Player, PlayerInfoSQLModel from core.services.players.models import PlayersDataBase as Player, PlayerInfoSQLModel
from core.services.players.services import PlayersService from core.services.players.services import PlayersService, PlayerInfoService
from utils.log import logger from utils.log import logger
__all__ = ("BindAccountPlugin",) __all__ = ("BindAccountPlugin",)
@ -43,11 +43,13 @@ class BindAccountPlugin(Plugin.Conversation):
self, self,
players_service: PlayersService = None, players_service: PlayersService = None,
cookies_service: CookiesService = None, cookies_service: CookiesService = None,
player_info_service: PlayerInfoService = None,
public_cookies_service: PublicCookiesService = None, public_cookies_service: PublicCookiesService = None,
): ):
self.public_cookies_service = public_cookies_service self.public_cookies_service = public_cookies_service
self.cookies_service = cookies_service self.cookies_service = cookies_service
self.players_service = players_service self.players_service = players_service
self.player_info_service = player_info_service
@conversation.entry_point @conversation.entry_point
@handler.command(command="setuid", filters=filters.ChatType.PRIVATE, block=True) @handler.command(command="setuid", filters=filters.ChatType.PRIVATE, block=True)