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