Spaces:
Running
Running
import requests | |
# port = 7860 | |
port= 3000 | |
# url = "http://localhost:{p}/accountManager/login".format(p=port) | |
url = "http://localhost:{p}/accountManager/signUp".format(p=port) | |
data = { | |
"email": '1234567891011@qq.com', | |
"password": '1234567891011@qq.com' | |
} | |
response = requests.get(url, json=data) | |
print(response.status_code) | |
print(response.json()) | |
# #hook模拟 | |
# # port = 7860 | |
# # url = "http://localhost:{p}/uu".format(p=port) | |
# url = 'https://hook.pixiv.digital/uu' | |
# data = { | |
# "ec": 200, | |
# "em": "ok", | |
# "data": { | |
# "type": "order", | |
# "order": { | |
# "out_trade_no": "20241014133823102101567665", | |
# "user_id": "f05ca070734c11efa78052540025c377", | |
# "plan_id": "ef3c43c6daa411ee965e5254001e7c00", | |
# "month": 1, | |
# "total_amount": "10.00", | |
# "show_amount": "10.00", | |
# "status": 2, | |
# "remark": "", | |
# "redeem_id": "", | |
# "product_type": 1, | |
# "discount": "0.00", | |
# "sku_detail": [ | |
# { | |
# "sku_id": "ef440afcdaa411ee9e165254001e7c00", | |
# "price": "1.00", | |
# "count": 10, | |
# "name": "\u4f59\u989d\u6570\u91cf", | |
# "album_id": "", | |
# "pic": "", | |
# "stock": "", | |
# "post_id": "" | |
# } | |
# ], | |
# "create_time": 1728884303, | |
# "plan_title": "\u4f59\u989d", | |
# "user_private_id": "f14e880d78ac9d5c623b677c6e0c7122f1158bf0", | |
# "address_person": "", | |
# "address_phone": "", | |
# "address_address": "", | |
# "custom_order_id": "12345678910@qq.com" | |
# } | |
# } | |
# } | |
# response = requests.get(url, json=data) | |
# print(response.status_code) | |
# print(response.text) | |
# # purchase 模拟 | |
# url = "http://localhost:{p}/accountManager/purchase".format(p=port) | |
# data = { | |
# "price":10, | |
# "duration_seconds":2592000, | |
# "email":'1320890187@qq.com', | |
# "password":"1320890187@qq.com" | |
# } | |
# | |
# response = requests.get(url, json=data) | |
# print(response.status_code) | |
# print(response.json()) |