coze-dev / coze-dev/coze-studio
生产环境使用快捷指令调用工作流无法正确传递参数
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
我通过快捷指令创建了一个问题反馈的功能用来收集问题,如下图所示。
在预览调试的时候是可以正常传递参数的,在coze-stuido的数据库模块能看到测试数据正确写入。
但是通过chatSDK发布到网站上的时候能看到新增的一条线上数据,但是和用户输入相关的字段都是空的,并且工作流中加入必填的话会提交数据会有必填的错误弹出。第一条是我在数据库里手动加的,其他数据都是通过工作流创建的。
这是工作流里的设置
我看了生产环境下的网络请求,传数据的时候参数名都是中文,如果这里我把快捷指令的参数名改成英文对应的就能正确的取到值,如果是写的中文就会用中文名传数据。
这个问题是我自己的设置问题还是bug我不太确定,不知道有没有解决的办法。
Contributor guide
Research direction
Start with the ChatSDK production request and the workflow settings shown in the issue, comparing them with the preview/debug request and the database module's stored data. Trace how Chinese shortcut parameter names are passed into the production workflow. Done means user-provided fields are populated correctly in production, including when required fields are enabled.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100