Kaynağa Gözat

增加接口返回结果

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 4 yıl önce
ebeveyn
işleme
88515752b2
1 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 1 3
      jianye_report.py

+ 1 - 3
jianye_report.py

@@ -323,7 +323,6 @@ class JianYeReport(object):
         send_mail_info = []
         rfu = ReportFileUtils()
         customers = self.get_report_customers(task_key)
-        message[0] = '客户信息获取成功'
         send_mail_log = []
         brand_table_one = None
         brand_table_two = None
@@ -332,10 +331,8 @@ class JianYeReport(object):
             send_data = []
             if task_key == 12:
                 brand_table_one = self.brand_data()
-                message['brand'] = 'success'
                 house_ids = self.get_house_id_by_brand_id('13')
                 brand_table_two = self.house_data(house_ids)
-                message['house'] = 'success'
             for customer in customers:
                 name = customer[2]
                 customer_type = customer[1]
@@ -390,6 +387,7 @@ class JianYeReport(object):
                     print(e)
                     send_mail_log.append([data[6], data[7], data[2], -1, '文件创建失败:{}'.format(str(e))])
             message['file'] = 'success'
+            message['data'] = send_mail_info
             for mail in send_mail_info:
                 try:
                     self.send_mail(mail, send_mail_log)