Initial commit

This commit is contained in:
Naruse
2024-11-07 23:25:15 +08:00
commit e8e5f3a1a7
246 changed files with 27356 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import betterproto
from game_server.net.session import Session
from lib.proto import GetPlayerTokenReq,GetPlayerTokenRsp
async def handle(session: Session, msg: GetPlayerTokenReq) -> betterproto.Message:
return GetPlayerTokenRsp(
retcode=0,
uid=1337,
token=msg.token,
account_type=msg.account_type,
account_uid="1337",
user_type=4,
hoyolab_account_uid="1337",
fightserver_ip=0,
fightserver_port=0
)