gaoyuan 8 months ago
parent 72ee504939
commit bc88a05edc

@ -312,6 +312,8 @@ if __name__ == '__main__':
s += userName + '_' + mobile + '---------------' + \
"小茅运:" + r + '\n'
s += userName + '_' + mobile + "正常结束任务"+'\n \n'
# 多个用户均执行结束时:统一发送结果邮件
if userCount == len(mt_token_list):
if "失败" in s:
# 替换 申购失败:今天已申购 后再判断是否还有失败的文字
replacedS = s.replace('申购失败:今天已申购', '-')
@ -321,7 +323,7 @@ if __name__ == '__main__':
else:
sendEmail('茅台已申购',s)
else :
sendEmail('茅台申购成功',s)
sendEmail('用户'+str(userCount)+'茅台申购成功',s)
except Exception as e:
s += userName + '_' + mobile + "异常信息"+e
sendEmail('茅台申购异常结束',s)

Loading…
Cancel
Save