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
map.py
Normal file
17
map.py
Normal file
@ -0,0 +1,17 @@
|
||||
import json
|
||||
|
||||
from sdgb import sdgb_api
|
||||
|
||||
def map(userId):
|
||||
data = json.dumps({
|
||||
"userId": int(userId),
|
||||
"nextIndex": 0,
|
||||
"maxCount": 600
|
||||
})
|
||||
|
||||
map_result = json.loads(sdgb_api(data, "GetUserMapApi", userId))
|
||||
|
||||
return map_result
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(map(int(input())))
|
Reference in New Issue
Block a user