mirror of
https://github.com/N1ngYu/SaltBot.git
synced 2025-09-28 08:42:40 +08:00
Add: Separate Plugin
This commit is contained in:
26
nonebot_plugin_maimai_helper/leak/logout.py
Normal file
26
nonebot_plugin_maimai_helper/leak/logout.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import json
|
||||
import pytz
|
||||
|
||||
from sdgb import sdgb_api
|
||||
from datetime import datetime
|
||||
|
||||
from settings import userId
|
||||
from settings import regionId, clientId, placeId
|
||||
|
||||
def logout(timestamp):
|
||||
data = json.dumps({
|
||||
"userId": userId,
|
||||
"accessCode": "",
|
||||
"regionId": regionId,
|
||||
"placeId": placeId,
|
||||
"clientId": clientId,
|
||||
"dateTime": timestamp,
|
||||
"type": 1
|
||||
})
|
||||
|
||||
logout_result = sdgb_api(data, "UserLogoutApi", userId)
|
||||
return logout_result
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(logout(int(input())))
|
||||
Reference in New Issue
Block a user