-
Notifications
You must be signed in to change notification settings - Fork 4k
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
js输出总是取不到要取的字段 #1909
Comments
这是个啥? |
找到原因了,result要在js代码中赋值,打扰了 |
~ok,,下次麻烦直接贴图和代码,这表述看着怪怪的。 |
不好意思,刚看错了,还是有问题。以下是js代码:
|
return { |
在调试中看输出结果就长这样: |
直接写 result 就能提了 |
如果是自定义输出字段就是提不出来result(始终为空),只能提出codeReturn。尝试再加一个js模块从codeReturn提取result,给我的结果依然是这个格式: |
今天升级到4.8.5就好了,之前输出格式一直有问题 |
严重怀疑,是不是你 sandbox 和 fastgpt 版本不一致 |
是的,后来跟负责搭建系统的同事确认了 |
例行检查
你的版本
问题描述, 日志截图
用js模块取json里面的值,输出为:
{
"codeReturn": {
"result": "pending"
},
"log": ""
}
js模块中自定义输出放了2个:codeReturn(any类型),result(string类型),codeReturn可以拿到结果,结果为:
{
"result": "pending"
}
但result总是取不到
复现步骤
预期结果
相关截图
The text was updated successfully, but these errors were encountered: