🎨 Update recognize_starrail_server function

Added support for additional servers

co-authored-by: xtaodada <xtao@xtaolink.cn>
This commit is contained in:
洛水居室 2023-05-08 09:01:19 +08:00
parent 4250481727
commit 8446a16a51
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -1,6 +1,7 @@
"""This module contains functions for recognizing servers associated with different player IDs."""
from typing import Optional, Mapping, Sequence
from simnet.utils.enum_ import Game, Region
UID_RANGE: Mapping[Game, Mapping[Region, Sequence[int]]] = {
@ -62,11 +63,11 @@ def recognize_starrail_server(player_id: int) -> str:
server = {
"1": "prod_gf_cn",
"2": "prod_gf_cn",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "",
"5": "prod_qd_cn",
"6": "prod_official_usa",
"7": "prod_official_eur",
"8": "prod_official_asia",
"9": "prod_official_cht",
}.get(str(player_id)[0])
if server: