mirror of
https://git.fragrance.moe/Fragrance/maquitous.git
synced 2025-01-16 08:57:24 +00:00
feat: add function map, change host.py to main.py
This commit is contained in:
17
character.py
Normal file
17
character.py
Normal file
@ -0,0 +1,17 @@
|
||||
import json
|
||||
|
||||
from sdgb import sdgb_api
|
||||
|
||||
def character(userId):
|
||||
data = json.dumps({
|
||||
"userId": int(userId),
|
||||
"nextIndex":10000000000,
|
||||
"maxCount":1000000000
|
||||
})
|
||||
|
||||
character_result = json.loads(sdgb_api(data, "GetUserCharacterApi", userId))
|
||||
|
||||
return character_result
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(character(int(input())))
|
Reference in New Issue
Block a user