MCPcopy Create free account
hub / github.com/Loping151/RoverSign / get_hide_uid_pref

Function get_hide_uid_pref

RoverSign/utils/util.py:138–152  ·  view source on GitHub ↗

读 WavesUser.hide_uid_self_value, 没绑定就回空 (走全局 HideUid)。

(uid: str, user_id: str, bot_id: str, game_id=None)

Source from the content-addressed store, hash-verified

136
137
138async def get_hide_uid_pref(uid: str, user_id: str, bot_id: str, game_id=None) -> str:
139 """读 WavesUser.hide_uid_self_value, 没绑定就回空 (走全局 HideUid)。"""
140
141 from .database.models import WavesUser
142
143 try:
144 user = await WavesUser.select_waves_user(
145 uid,
146 user_id,
147 bot_id,
148 game_id=game_id,
149 )
150 return user.hide_uid_self_value if user else ""
151 except Exception:
152 return ""

Callers 3

set_pgr_config_funcFunction · 0.85
open_switch_funcFunction · 0.85
rover_sign_up_handlerFunction · 0.85

Calls 1

select_waves_userMethod · 0.80

Tested by

no test coverage detected