|
@@ -229,13 +229,13 @@ def consumer(
|
|
|
return Response(content="")
|
|
|
|
|
|
# 根据用户发送的消息内容切换bot_id
|
|
|
- if msg_type == 'event' and event == 'click' and event_key == '#sendmsg#_0_0#7599826213209000':
|
|
|
+ if msg_type == 'event' and event == 'click' and event_key == '#sendmsg#_0_0#7599827339205934':
|
|
|
bot_id = "7456977536891846697" # 当用户发送渝快振兴贷时使用的bot_id
|
|
|
# change_message = "您好,已切换为渝快振兴贷产品助手,请输入问题。"
|
|
|
# qiwei_post(username, change_message, agentid)
|
|
|
user_bot_id_mapping[username] = bot_id # 更新用户的bot_id状态
|
|
|
return Response(content="")
|
|
|
- elif msg_type == 'event' and event == 'click' and event_key == '#sendmsg#_0_1#7599826213209001':
|
|
|
+ elif msg_type == 'event' and event == 'click' and event_key == '#sendmsg#_0_1#7599827339205935':
|
|
|
bot_id = "7445101065005154313" # 当用户发送房快贷时使用的bot_id
|
|
|
# change_message = "您好,已切换为房快贷产品助手,请输入问题。"
|
|
|
# qiwei_post(username, change_message, agentid)
|