This commit is contained in:
1 parent
dc72f506a9
commit
3d3e437b00
3 files changed
+100
-2
No files matched your search
+8
-1
@@ -18,6 +18,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
|
||||
from app.utils.xbot_utils import send_select_activity_card_message
|
||||
|
||||
|
||||
def parse_history_message(data):
|
||||
@@ -148,11 +149,17 @@ def process_message_callback(
|
||||
content = json.loads(message_data.get("content"))
|
||||
content_text = content.get("text")
|
||||
|
||||
if "记录问题" not in content_text:
|
||||
if "记录问题" not in content_text or "下载指令" not in content_text:
|
||||
# 忽略非记录问题的消息
|
||||
lark.logger.info("忽略非记录问题的消息")
|
||||
return
|
||||
|
||||
# 根据消息内容走不同的逻辑
|
||||
if "下载指令" in content_text:
|
||||
# 发送一个卡片消息
|
||||
send_select_activity_card_message(message_id)
|
||||
return
|
||||
|
||||
record_category = "官方指令" if "指令" in content_text else "官方应用"
|
||||
|
||||
record = {}
|
||||
|
||||
Reference in new issue
Block a user