| 
															
																@@ -354,13 +354,13 @@ class JianYeReport(object): 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             # 发送邮件 
															 | 
															
															 | 
															
																             # 发送邮件 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             for mail in send_mail_info: 
															 | 
															
															 | 
															
																             for mail in send_mail_info: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 try: 
															 | 
															
															 | 
															
																                 try: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    for m in self.customer_mails: 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        result = mail_util.send_mail_by_admin(mail[0], mail[1], m, mail[3], mail[4]) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        if result: 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                            # 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']) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    # for m in self.customer_mails: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    result = mail_util.send_mail_by_admin(mail[0], mail[1], mail[2], mail[3], mail[4]) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    if result: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        # 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']) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 except Exception as e: 
															 | 
															
															 | 
															
																                 except Exception as e: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     print(str(e)) 
															 | 
															
															 | 
															
																                     print(str(e)) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     message['error1'] = str(e) 
															 | 
															
															 | 
															
																                     message['error1'] = str(e) 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -468,13 +468,19 @@ class JianYeReport(object): 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 try: 
															 | 
															
															 | 
															
																                 try: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     if new_mail: 
															 | 
															
															 | 
															
																                     if new_mail: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         result = mail_util.send_mail_by_admin(mail[0], mail[1], new_mail, mail[3], mail[4]) 
															 | 
															
															 | 
															
																                         result = mail_util.send_mail_by_admin(mail[0], mail[1], new_mail, mail[3], mail[4]) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        if result: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            # 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']) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     else: 
															 | 
															
															 | 
															
																                     else: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        result = mail_util.send_mail_by_admin(mail[0], mail[1], mail[7], mail[3], mail[4]) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    if result: 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        # 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']) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        for m in self.customer_mails: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            result = mail_util.send_mail_by_admin(mail[0], mail[1], m, mail[3], mail[4]) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            if result: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                # 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']) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 except Exception as e: 
															 | 
															
															 | 
															
																                 except Exception as e: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     print(str(e)) 
															 | 
															
															 | 
															
																                     print(str(e)) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     message['邮件发送失败'] = str(e) 
															 | 
															
															 | 
															
																                     message['邮件发送失败'] = str(e) 
															 |