|
@@ -156,9 +156,6 @@ def _delete_all_roles(zone: ZoneId, jwt: str, uid: int,
|
|
|
def _fetch_role_list(conn: GatewayConnection, zone: ZoneId, jwt: str,
|
|
def _fetch_role_list(conn: GatewayConnection, zone: ZoneId, jwt: str,
|
|
|
uid: int) -> list[dict[str, object]]:
|
|
uid: int) -> list[dict[str, object]]:
|
|
|
"""登录链拉 SC520 角色列表(2001→104→100→520, login_gate 同源精简)。"""
|
|
"""登录链拉 SC520 角色列表(2001→104→100→520, login_gate 同源精简)。"""
|
|
|
- from pbot.codec.bitbuf import decode6
|
|
|
|
|
- from pbot.config import CHANNEL, GAME_ID
|
|
|
|
|
-
|
|
|
|
|
body2001 = (f"{uid}/".encode() + encode6(jwt.encode()) + b"/"
|
|
body2001 = (f"{uid}/".encode() + encode6(jwt.encode()) + b"/"
|
|
|
+ encode6(CHANNEL.encode()) + b"/1/0")
|
|
+ encode6(CHANNEL.encode()) + b"/1/0")
|
|
|
_ = conn.send_frame(2001, _rand30(), zone, conn.port, 0, body2001, tail=0)
|
|
_ = conn.send_frame(2001, _rand30(), zone, conn.port, 0, body2001, tail=0)
|