Parcourir la source

(modify):@全体,调整飞书10s一次

admindog il y a 2 mois
Parent
commit
715f6dc4bc
1 fichiers modifiés avec 9 ajouts et 3 suppressions
  1. 9 3
      src/code/telegram_get_gmgnalertbot_sol.py

+ 9 - 3
src/code/telegram_get_gmgnalertbot_sol.py

@@ -289,12 +289,18 @@ def send_feishu(arr_obj_sendmsg):
              
         }])
 
+
         content.append([{
             "tag": "text",
             "text": "*****************"
         }])
  
- 
+    content.append([{
+        "tag": "at",
+        "user_id": "all",
+        "user_name": "allman"
+    }])
+        
     payload_message["content"]["post"]["zh_cn"]["content"] = content
     payload_message["content"] = json.dumps(payload_message["content"])
 
@@ -651,8 +657,8 @@ async def timedTasks():
         obj_global_info["timedTasks_idx"]=10
 
 
-    if cur_timedTasks_idx%15==0:
-        # 15s一次飞书
+    if cur_timedTasks_idx%10==0:
+        # 10s一次飞书
         await ready_send_feishu_timed()
         
     return