更新 叮叮联盟_api.py
This commit is contained in:
parent
f993db0f77
commit
3d92e18c44
@ -46,6 +46,7 @@ from functools import wraps
|
||||
import requests
|
||||
import time
|
||||
import os
|
||||
from notify inport send
|
||||
import json
|
||||
import hashlib
|
||||
import random
|
||||
@ -536,6 +537,12 @@ class yuanshen:
|
||||
logging.info(f'当前账号[{name}]余额[{m}]')
|
||||
url = 'https://api.jiudingliliang.com/user/withdraw'
|
||||
r = requests.post(url,headers=self.h,json={}).json()
|
||||
|
||||
if r['code'] == 10000:
|
||||
lessmoney = r["result"]["transfer"][0]["m"]
|
||||
# 检查是否可以提现并发送提醒
|
||||
if m >= lessmoney:
|
||||
send("叮叮可提现通知📢", f'当前账号[{name}]余额[{m}],可以提现啦')
|
||||
|
||||
if r['code'] == 10000:
|
||||
if appToken and uid:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user