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

工单标记为手动上线时出现报错 #2476

Open
hasa1K opened this issue Jul 5, 2024 · 0 comments
Open

工单标记为手动上线时出现报错 #2476

hasa1K opened this issue Jul 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hasa1K
Copy link
Collaborator

hasa1K commented Jul 5, 2024

版本信息(Version)

sqle: 061e660

问题描述(Describe)

工单标记为人工上线时,出现"unsupported data"报错
image

错误原因

后端更新task状态时,传递给Updates函数的数据结构为map[string]string
image
但是gorm v2中要求传递给Updates的数据结构要为map[string]interface{}或者是struct
https://github.com/go-gorm/gorm/issues?q=is%3Aissue+updates+unsupported+data+is%3Aclosed

实现方案

将传递的数据结构修改为map[string]interface{}

变更影响面

潜在风险

检查所有的Updates函数,是否还有错误的传值
中止上线函数存在同样问题,已同步修改

受影响的模块或功能

外部引用的潜在问题或风险

版本兼容性

测试建议

@hasa1K hasa1K added the bug Something isn't working label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants