add card message callback
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2025-03-27 00:41:16 +08:00
1 parent bf678baf48
commit 8980fdab57
3 files changed
+35 -6

No files matched your search

+2 -1
View File
@@ -171,8 +171,9 @@ def do_card_action_trigger(data: P2CardActionTrigger) -> P2CardActionTriggerResp
# data = json.loads(lark.JSON.marshal(data))
open_id = data.event.operator.open_id
activity_name = data.event.action.form_value.get("select_activity")
open_message_id = data.event.context.open_message_id
process_push_xbot_activity_bot.delay(activity_name, open_id)
process_push_xbot_activity_bot.delay(activity_name, open_id, open_message_id)
resp = {"toast": {"type": "info", "content": "提交成功, 机器人即将推送"}}
return P2CardActionTriggerResponse(resp)