Skip to content

fix: 修复 sandbox backend edit 方法错误访问 result.data.success#720

Open
supreme0597 wants to merge 1 commit into
xerrors:mainfrom
supreme0597:fix/sandbox-editor-file
Open

fix: 修复 sandbox backend edit 方法错误访问 result.data.success#720
supreme0597 wants to merge 1 commit into
xerrors:mainfrom
supreme0597:fix/sandbox-editor-file

Conversation

@supreme0597
Copy link
Copy Markdown
Contributor

变更描述

简要描述这个 PR 做了什么

  • str_replace_editor() 返回的 result 已经是 ResponseStrReplaceEditorResult, .success 和 .message 在顶层属性上,不应再经过 .data 访问。 此错误导致编辑文件时报 'StrReplaceEditorResult' object has no attribute 'success'。

变更类型

  • 新功能
  • Bug 修复
  • 文档更新
  • 其他

测试

  • 已在 Docker 环境测试
  • 相关功能正常工作

相关日志或者截图

image

说明

(可选)有什么需要特别说明的吗?
#717

💡 提示: 提交前可以运行 make lintmake format 检查代码规范

str_replace_editor() 返回的 result 已经是 ResponseStrReplaceEditorResult, .success 和 .message 在顶层属性上,不应再经过 .data 访问。 此错误导致编辑文件时报 'StrReplaceEditorResult' object has no attribute 'success'。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant