mirror of
https://git.fragrance.moe/Fragrance/maquitous.git
synced 2025-01-16 08:57:24 +00:00
Init Commit
This commit is contained in:
27
logout.py
Normal file
27
logout.py
Normal file
@ -0,0 +1,27 @@
|
||||
import json
|
||||
import pytz
|
||||
|
||||
from sdgb import sdgb_api
|
||||
from datetime import datetime
|
||||
|
||||
from settings import regionId
|
||||
from settings import clientId
|
||||
from settings import placeId
|
||||
|
||||
def logout(userId, timestamp):
|
||||
data = json.dumps({
|
||||
"userId": userId,
|
||||
"accessCode": "",
|
||||
"regionId": regionId,
|
||||
"placeId": placeId,
|
||||
"clientId": clientId,
|
||||
"dateTime": timestamp,
|
||||
"type": 1
|
||||
})
|
||||
|
||||
logout_result = json.loads(sdgb_api(data, "UserLogoutApi", userId))
|
||||
return logout_result
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(logout(int(input())))
|
Reference in New Issue
Block a user