上传文件至 /

This commit is contained in:
2025-10-13 18:15:05 +08:00
parent 2a198c3da6
commit c4e2150acf
18 changed files with 1178 additions and 1 deletions

16
HelperGetUserThing.py Normal file
View File

@@ -0,0 +1,16 @@
from loguru import logger
import rapidjson as json
from API_TitleServer import apiSDGB
def implGetUser_(thing:str, userId:int, noLog=False) -> dict:
result = apiGetUserThing(userId, thing, noLog)
userthingDict = json.loads(result)
return userthingDict
def apiGetUserThing(userId:int, thing:str, noLog=False) -> str:
data = json.dumps({
"userId": userId
})
userthing_result = apiSDGB(data, "GetUser" + thing + "Api", userId, noLog)
return userthing_result