Update jd_pzhb_notify.py

This commit is contained in:
Faker 2022-10-24 00:27:07 +08:00
parent 734bed3d01
commit 12cc8b6fb1

View File

@ -54,7 +54,7 @@ load_send()
def get_remarkinfo():
url='http://127.0.0.1:5600/api/envs'
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']
headers={
'Accept':'application/json',
@ -118,8 +118,11 @@ if __name__ == '__main__':
except:
printf("--账号:" + urllib.parse.unquote(ptpin) + "--")
getinfo(ck)
try:
if inflateMaxAward != 0:
msg+=remarkinfos[ptpin] + ' 的膨胀红包最大金额为 '+str(inflateMaxAward)+'\n'
except:
msg+=urllib.parse.unquote(ptpin) + ' 的膨胀红包最大金额为 '+str(inflateMaxAward)+'\n'
if sendnoty:
try:
send('穿越寻宝膨胀红包',msg)