Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在意图处理函数中获取this.message.extras #76

Closed
halfray opened this issue May 4, 2023 · 4 comments
Closed

如何在意图处理函数中获取this.message.extras #76

halfray opened this issue May 4, 2023 · 4 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@halfray
Copy link

halfray commented May 4, 2023

描述

通过春松客服向chatopera发送消息是都会携带extras信息,但是在对话函数中可以获取this.message.extras,但是在意图处理函数中获取的是undefined,请问如何获取?

@hailiang-wang hailiang-wang added the help wanted Extra attention is needed label May 4, 2023
@hailiang-wang
Copy link
Member

hailiang-wang commented May 4, 2023

我理解您的意思,但是您可否提供一个在 意图处理函数中获取的是undefined 您使用的代码片段,以让我更准确的定位。感谢。

@hailiang-wang
Copy link
Member

针对接口

多轮对话 API LINK

Chatbot#command("POST", "/conversation/query", body)

body 中如果有 extras 信息:

screenshot_20230504174944

@hailiang-wang
Copy link
Member

新建 repo,对该问题进行复现和跟踪:

https://github.com/chatopera/Issue76

@hailiang-wang
Copy link
Member

该问题已经修正,详情请参考:

https://github.com/chatopera/Issue76#%E4%BF%AE%E6%AD%A3

感谢您的反馈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants