Spaces:
Sleeping
Sleeping
File size: 2,226 Bytes
ee37dcf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
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()) |