更新 傻狗阅读_api.py

This commit is contained in:
chickliu 2024-11-30 14:24:28 +08:00
parent 2e5e5ac583
commit cac45d2152

View File

@ -49,7 +49,6 @@ import base64
from datetime import datetime,timedelta
from urllib.parse import urlparse, parse_qs,quote
from notify import send
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] ===> %(message)s')
code = "傻狗阅读_api版"
ver = "1.3"
@ -390,11 +389,15 @@ class yuanshen:
if r['success']:
logging.info('参数被加密 进行解密操作')
code = r["decodedCode"]
t = re.findall(r'"(.*?)"', code)
t = re.findall(r"(?<=[\"'])[a-fA-F0-9]+(?=[\"'])", code)
if t:
p1, p2, p3,p4 = t[0], t[1], t[2], t[3]
print("参数1:", p1)
if p1 != 'dabd8febf0c64c31b79c4785034e0de9':
print('参数解密中可能发生错误')
raise Exception('参数解密中可能发生错误!!!')
print("参数2:", p2)
print("参数3:", p3)
print("参数4:", p4)
@ -475,8 +478,8 @@ class yuanshen:
url = 'https://api.yd.dgtech.top/twyd/agent/user/getCoinDrawList'
r = requests.post(url,json={},headers=self.h).json()
allmoney = r["data"]["user"]["totalCoin"] / 10000
lessmoney = r['data']['coinList'][1]['amount']
uuid = r["data"]["coinList"][1]["uuid"]
lessmoney = r['data']['coinList'][0]['amount']
uuid = r["data"]["coinList"][0]["uuid"]
logging.info(f'余额:{allmoney}')
if withdraw_auto:
if allmoney >= lessmoney: