| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # -*- coding: utf-8 -*-
- # Author : Charley
- # Python : 3.10.8
- # Date : 2026/1/30 11:43
- import requests
- import json
- headers = {
- "User-Agent": "okhttp/4.9.0",
- "Connection": "Keep-Alive",
- "Accept-Encoding": "gzip",
- "Authorization": "",
- "CXX-APP-API-VERSION": "V2",
- "deviceType": "2",
- "udid": "20f902c10f6163a19bf137d801731d9f",
- # "time": "1769751365500",
- "Content-Type": "application/json; charset=UTF-8"
- }
- def send_code():
- url = "https://cxx.cardsvault.net/app/py/login/mobile/code"
- data = {
- "zone": "86",
- "mobile": "19521500850"
- }
- response = requests.post(url, headers=headers, json=data)
- print(response.text)
- print(response)
- def login():
- url = "https://cxx.cardsvault.net/app/py/login/mobile"
- data = {
- # "code": "123123",
- "code": code,
- "mobile": "19521500850",
- "region": {
- "code": "86",
- "code_en": "CN",
- "country_cn": "中国",
- "country_en": "China"
- }
- }
- data = json.dumps(data, separators=(',', ':'))
- response = requests.post(url, headers=headers, data=data)
- print(response.text)
- print(response)
- if __name__ == '__main__':
- send_code()
- code = input("请输入验证码:")
- login()
|