Mike 3 년 전
부모
커밋
045aded487
2개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 8 5
      execute_detail_notice.py
  2. 1 1
      is_close_changed_notice.py

+ 8 - 5
execute_detail_notice.py

@@ -155,7 +155,7 @@ html += """
 """
 
 # Email清單
-crm_list = ['mike@choozmo.com', 'shopbook2016@gmail.com', 'oluckyo.mike@gmail.com']
+crm_list = ['mike@choozmo.com', 'stacy@choozmo.com', 'oluckyo.mike@gmail.com']
 # crm_list = ['miko@hhh.com.tw', 'mollie@hhh.com.tw', 'lynn@hhh.com.tw', 'zoe_lo@hhh.com.tw']
 
 # 寄送逾期執行表單Email通知
@@ -250,7 +250,7 @@ for execute_man in execute_man_list:
             idx = 0
 
             for r3 in db.query(q3):
-                url = 'https://backstage.hhh.com.tw/admin/home/execute?exf_id=' + str(r3['exf_id'])
+                url = 'https://stage-backstage.hhh.com.tw/admin/home/execute?exf_id=' + str(r3['exf_id'])
 
                 if r3['set_date'] is None:
                     r3['set_date'] = '無'
@@ -275,9 +275,12 @@ for execute_man in execute_man_list:
     """
 
     # 寄送逾期執行表單Email通知
-    email = 'mike@choozmo.com'
-    print ("發送Email: " + email)
-    hhh_send_mail(email, html)
+    email_list = ['mike@choozmo.com', 'stacy@choozmo.com']
+
+    # 寄送逾期執行表單Email通知
+    for email in email_list:
+        print ("發送Email: " + email)
+        hhh_send_mail(email, html)
 
 print ('發送逾期執行項目通知 (執行單位) end...')
 

+ 1 - 1
is_close_changed_notice.py

@@ -293,4 +293,4 @@ async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
 
     # 寄送逾期執行表單Email通知
     for email in email_list:
-        hhh_send_mail(email, subject, html)
+        hhh_send_mail(email, html)