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

Function check_send_master_info

RoverSign/utils/api/request_util.py:97–108  ·  view source on GitHub ↗
(code: int, msg: str, data: Optional[T] = None)

Source from the content-addressed store, hash-verified

95
96
97def check_send_master_info(code: int, msg: str, data: Optional[T] = None) -> bool:
98 if code in SEND_MASTER_INFO_CODES:
99 return True
100
101 if code in NOT_SEND_MASTER_INFO_CODES:
102 return False
103
104 import inspect
105
106 callers = [f.function for f in inspect.stack()[5:8][::-1]]
107 logger.warning(f"[库洛签到·UID工具] {'.'.join(callers)} code: {code} msg: {msg} data: {data}")
108 return isinstance(msg, str) and msg != ""
109
110
111class KuroApiResp(BaseModel, Generic[T]):

Callers 1

_post_validateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected