add push webhook
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2025-03-26 18:49:29 +08:00
1 parent 0e315a6cae
commit 28740517cf
3 files changed
+374 -3

No files matched your search

+7 -1
View File
@@ -17,6 +17,7 @@ from app.utils.feishu import (
)
from app.utils.utils import update_record, add_record
from app.utils.yd_utils import new_blank_robot, new_blank_activity
from app.utils.xbot_utils import push_xbot_activity_bot
def parse_history_message(data):
@@ -33,7 +34,7 @@ def parse_history_message(data):
sender_id_item = item.get("sender").get("id")
if index == 0:
sender_id = sender_id_item
print(f"raw msg: {item}")
print("***************")
@@ -397,3 +398,8 @@ def process_new_robot(app_id, app_secret, action_data):
table_id = "tbl2GcBvkvMtOBnl"
add_record(client, bitable_token, table_id, catagory_table_record)
@shared_task(include_result=False)
def process_push_xbot_activity_bot(activity_code, open_id):
push_xbot_activity_bot(activity_code, open_id)