|
@@ -360,7 +360,7 @@ class JianYeReport(object):
|
|
|
# name, mail, report_name, push_time, send_status, status, error_message
|
|
|
send_mail_log.append([mail[5], mail[2], mail[3], 1, 'success'])
|
|
|
else:
|
|
|
- send_mail_log.append([mail[5], mail[2], mail[3], -1, 'fail'])
|
|
|
+ send_mail_log.append([mail[5], mail[2], mail[3], -1, '调用邮件接口失败:{}'.format(str(result))])
|
|
|
except Exception as e:
|
|
|
print(str(e))
|
|
|
message['error1'] = str(e)
|
|
@@ -472,7 +472,8 @@ class JianYeReport(object):
|
|
|
# name, mail, report_name, push_time, send_status, status, error_message
|
|
|
send_mail_log.append([mail[5], mail[2], mail[3], 1, 'success'])
|
|
|
else:
|
|
|
- send_mail_log.append([mail[5], mail[2], mail[3], -1, 'fail'])
|
|
|
+ # send_mail_log.append([mail[5], mail[2], mail[3], -1, 'fail'])
|
|
|
+ pass
|
|
|
else:
|
|
|
for m in self.customer_mails:
|
|
|
result = mail_util.send_mail_by_admin(mail[0], mail[1], m, mail[3], mail[4])
|