forked from Fragrance/eaquira
chore: move payload scripts to action/
This commit is contained in:
32
action/UserLogoutApi.py
Normal file
32
action/UserLogoutApi.py
Normal file
@@ -0,0 +1,32 @@
|
||||
import asyncio
|
||||
|
||||
import httpx
|
||||
|
||||
from sdgb import MaimaiClient
|
||||
from sdgb.settings import (
|
||||
userId,
|
||||
regionId,
|
||||
placeId,
|
||||
clientId,
|
||||
)
|
||||
|
||||
maimai = MaimaiClient()
|
||||
|
||||
|
||||
async def run_workflow(maimai: MaimaiClient):
|
||||
async with httpx.AsyncClient(verify=False) as client:
|
||||
data = {
|
||||
"userId": userId,
|
||||
"accessCode": "",
|
||||
"regionId": regionId,
|
||||
"placeId": placeId,
|
||||
"clientId": clientId,
|
||||
"dateTime": 1767000000,
|
||||
"type": 4,
|
||||
}
|
||||
await maimai.call_api(client, "UserLogoutApi", data, userId)
|
||||
|
||||
|
||||
# 执行入口
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(run_workflow(maimai))
|
||||
Reference in New Issue
Block a user