上传文件至 /
This commit is contained in:
16
HelperGetUserThing.py
Normal file
16
HelperGetUserThing.py
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user