forked from Fragrance/eaquira
format code
This commit is contained in:
@@ -2,13 +2,10 @@ import json
|
||||
import pytz
|
||||
|
||||
from sdgb import sdgb_api
|
||||
from sdgb import aimedb_api
|
||||
from datetime import datetime
|
||||
|
||||
from settings import userId, accessCode
|
||||
from settings import regionId
|
||||
from settings import clientId
|
||||
from settings import placeId
|
||||
from settings import regionId, clientId, placeId
|
||||
|
||||
def login(timestamp):
|
||||
data = json.dumps({
|
||||
@@ -22,9 +19,8 @@ def login(timestamp):
|
||||
"genericFlag": 0,
|
||||
})
|
||||
|
||||
login_result = json.loads(sdgb_api(data, "UserLoginApi", userId))
|
||||
login_result = sdgb_api(data, "UserLoginApi", userId)
|
||||
return login_result
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(aimedb_api(accessCode))
|
||||
print(login(int(input())))
|
||||
|
||||
@@ -5,9 +5,7 @@ from sdgb import sdgb_api
|
||||
from datetime import datetime
|
||||
|
||||
from settings import userId, accessCode
|
||||
from settings import regionId
|
||||
from settings import clientId
|
||||
from settings import placeId
|
||||
from settings import regionId, clientId, placeId
|
||||
|
||||
def logout(timestamp):
|
||||
data = json.dumps({
|
||||
@@ -20,7 +18,7 @@ def logout(timestamp):
|
||||
"type": 1
|
||||
})
|
||||
|
||||
logout_result = json.loads(sdgb_api(data, "UserLogoutApi", userId))
|
||||
logout_result = sdgb_api(data, "UserLogoutApi", userId)
|
||||
return logout_result
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import json
|
||||
|
||||
from sdgb import sdgb_api
|
||||
from sdgb import aimedb_api
|
||||
from settings import userId, accessCode
|
||||
|
||||
def preview(userId):
|
||||
@@ -14,5 +13,4 @@ def preview(userId):
|
||||
return preview_result
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(aimedb_api(accessCode))
|
||||
print(preview(userId))
|
||||
|
||||
Reference in New Issue
Block a user