mirror of
https://git.fragrance.moe/Fragrance/eaquira.git
synced 2025-01-16 08:56:53 +00:00
Init Commit
This commit is contained in:
28
sdgb/login.py
Normal file
28
sdgb/login.py
Normal file
@ -0,0 +1,28 @@
|
||||
import json
|
||||
import pytz
|
||||
|
||||
from sdgb import sdgb_api
|
||||
from datetime import datetime
|
||||
|
||||
from settings import userId
|
||||
from settings import regionId
|
||||
from settings import clientId
|
||||
from settings import placeId
|
||||
|
||||
def login(timestamp):
|
||||
data = json.dumps({
|
||||
"userId": userId,
|
||||
"accessCode": "",
|
||||
"regionId": regionId,
|
||||
"placeId": placeId,
|
||||
"clientId": clientId,
|
||||
"dateTime": timestamp,
|
||||
"isContinue": False,
|
||||
"genericFlag": 0,
|
||||
})
|
||||
|
||||
login_result = json.loads(sdgb_api(data, "UserLoginApi", userId))
|
||||
return login_result
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(login(int(input())))
|
Reference in New Issue
Block a user