mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
Update jd_pzhb_notify.py
This commit is contained in:
parent
734bed3d01
commit
12cc8b6fb1
@ -54,7 +54,7 @@ load_send()
|
|||||||
def get_remarkinfo():
|
def get_remarkinfo():
|
||||||
url='http://127.0.0.1:5600/api/envs'
|
url='http://127.0.0.1:5600/api/envs'
|
||||||
try:
|
try:
|
||||||
with open(os.getcwd().replace('scripts','config')+'/auth.json', 'r') as f:
|
with open(re.sub('scripts.*','config',os.getcwd())+'/auth.json', 'r') as f:
|
||||||
token=json.loads(f.read())['token']
|
token=json.loads(f.read())['token']
|
||||||
headers={
|
headers={
|
||||||
'Accept':'application/json',
|
'Accept':'application/json',
|
||||||
@ -118,8 +118,11 @@ if __name__ == '__main__':
|
|||||||
except:
|
except:
|
||||||
printf("--账号:" + urllib.parse.unquote(ptpin) + "--")
|
printf("--账号:" + urllib.parse.unquote(ptpin) + "--")
|
||||||
getinfo(ck)
|
getinfo(ck)
|
||||||
if inflateMaxAward != 0:
|
try:
|
||||||
msg+=remarkinfos[ptpin] + ' 的膨胀红包最大金额为 '+str(inflateMaxAward)+' 元\n'
|
if inflateMaxAward != 0:
|
||||||
|
msg+=remarkinfos[ptpin] + ' 的膨胀红包最大金额为 '+str(inflateMaxAward)+' 元\n'
|
||||||
|
except:
|
||||||
|
msg+=urllib.parse.unquote(ptpin) + ' 的膨胀红包最大金额为 '+str(inflateMaxAward)+' 元\n'
|
||||||
if sendnoty:
|
if sendnoty:
|
||||||
try:
|
try:
|
||||||
send('穿越寻宝膨胀红包',msg)
|
send('穿越寻宝膨胀红包',msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user