| 
														
															@@ -17,9 +17,9 @@ def bot(festival_info, days_count, date_str): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     festival = festival_info["festival"] 
														 | 
														
														 | 
														
															     festival = festival_info["festival"] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     category = festival_info["category"] 
														 | 
														
														 | 
														
															     category = festival_info["category"] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if festival == "龙年龙月龙日龙时": 
														 | 
														
														 | 
														
															     if festival == "龙年龙月龙日龙时": 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        date_str ="\n" + date_str + " 07:00-09:00" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    url = "https://open.feishu.cn/open-apis/bot/v2/hook/8eda2f73-e6f5-4fcd-944e-5a34579e1049" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    # url = "https://open.feishu.cn/open-apis/bot/v2/hook/f32c0456-847f-41f3-97db-33fcc1616bcd" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        date_str = "\n" + date_str + " 07:00-09:00" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    # url = "https://open.feishu.cn/open-apis/bot/v2/hook/8eda2f73-e6f5-4fcd-944e-5a34579e1049" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    url = 'https://open.feishu.cn/open-apis/bot/v2/hook/92045725-d126-465b-babe-7e2a0aa048b3' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     headers = {"Content-Type": "application/json"} 
														 | 
														
														 | 
														
															     headers = {"Content-Type": "application/json"} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if level == "P0": 
														 | 
														
														 | 
														
															     if level == "P0": 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -47,7 +47,8 @@ def bot(festival_info, days_count, date_str): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "header": {"title": {"content": "【🔥P0重点关注】", "tag": "plain_text"}}, 
														 | 
														
														 | 
														
															                 "header": {"title": {"content": "【🔥P0重点关注】", "tag": "plain_text"}}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }, 
														 | 
														
														 | 
														
															             }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        requests.request("POST", url=url, headers=headers, data=json.dumps(payload)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        res = requests.request("POST", url=url, headers=headers, data=json.dumps(payload)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        print(res.text) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if level == "P1": 
														 | 
														
														 | 
														
															     if level == "P1": 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         payload = { 
														 | 
														
														 | 
														
															         payload = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             "msg_type": "interactive", 
														 | 
														
														 | 
														
															             "msg_type": "interactive", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -73,7 +74,8 @@ def bot(festival_info, days_count, date_str): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "header": {"title": {"content": "【💡P1关注】", "tag": "plain_text"}}, 
														 | 
														
														 | 
														
															                 "header": {"title": {"content": "【💡P1关注】", "tag": "plain_text"}}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }, 
														 | 
														
														 | 
														
															             }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        requests.request("POST", url=url, headers=headers, data=json.dumps(payload)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        res = requests.request("POST", url=url, headers=headers, data=json.dumps(payload)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        print(res.text) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 class FestivalReminder(object): 
														 | 
														
														 | 
														
															 class FestivalReminder(object): 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -755,7 +757,7 @@ class FestivalReminder(object): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         "category": "节假日" 
														 | 
														
														 | 
														
															                         "category": "节假日" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     } 
														 | 
														
														 | 
														
															                     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 ], 
														 | 
														
														 | 
														
															                 ], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                "2025-02-22": [ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                "2025-02-12": [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     { 
														 | 
														
														 | 
														
															                     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         "level": "P0", 
														 | 
														
														 | 
														
															                         "level": "P0", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         "festival": "元宵节", 
														 | 
														
														 | 
														
															                         "festival": "元宵节", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1711,6 +1713,7 @@ class FestivalReminder(object): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if self.festival_dict[year].get(in_three_days): 
														 | 
														
														 | 
														
															         if self.festival_dict[year].get(in_three_days): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             festival_list = self.festival_dict[year][in_three_days] 
														 | 
														
														 | 
														
															             festival_list = self.festival_dict[year][in_three_days] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             for festival_ in festival_list: 
														 | 
														
														 | 
														
															             for festival_ in festival_list: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                print(festival_) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 bot(festival_info=festival_, days_count=3, date_str=in_three_days) 
														 | 
														
														 | 
														
															                 bot(festival_info=festival_, days_count=3, date_str=in_three_days) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 time.sleep(30) 
														 | 
														
														 | 
														
															                 time.sleep(30) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |