We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sqle: 061e660
工单标记为人工上线时,出现"unsupported data"报错
后端更新task状态时,传递给Updates函数的数据结构为map[string]string 但是gorm v2中要求传递给Updates的数据结构要为map[string]interface{}或者是struct https://github.com/go-gorm/gorm/issues?q=is%3Aissue+updates+unsupported+data+is%3Aclosed
map[string]string
map[string]interface{}
struct
将传递的数据结构修改为map[string]interface{}
检查所有的Updates函数,是否还有错误的传值 中止上线函数存在同样问题,已同步修改
The text was updated successfully, but these errors were encountered:
ColdWaterLW
No branches or pull requests
版本信息(Version)
sqle: 061e660
问题描述(Describe)
工单标记为人工上线时,出现"unsupported data"报错
![image](https://private-user-images.githubusercontent.com/53266479/346037961-3f5edfd7-031a-4a10-b08d-e3e977dcd755.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNDI0ODcsIm5iZiI6MTcyMTA0MjE4NywicGF0aCI6Ii81MzI2NjQ3OS8zNDYwMzc5NjEtM2Y1ZWRmZDctMDMxYS00YTEwLWIwOGQtZTNlOTc3ZGNkNzU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDExMTYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBmYzkzNzJjNGVlYzhiY2VhZDVlZTgyMzE0N2I2ODM3MTRkNGI4YWJlMGJhM2JkMGJlMTBmYWRkOThiOTQxZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bv19O-APPV-Mov1bOXhXmERZQ3gaXRrKhIsq9v2g2VI)
错误原因
后端更新task状态时,传递给Updates函数的数据结构为
![image](https://private-user-images.githubusercontent.com/53266479/346038195-6b750872-8566-4d77-b3a4-bdd4e9342fdb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNDI0ODcsIm5iZiI6MTcyMTA0MjE4NywicGF0aCI6Ii81MzI2NjQ3OS8zNDYwMzgxOTUtNmI3NTA4NzItODU2Ni00ZDc3LWIzYTQtYmRkNGU5MzQyZmRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDExMTYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxNjc3ZTVmNmRiNTFlODQyNDliYzU0ZTI2NzU0ODRjMWY0OTM5MGY4M2RhODExN2UxZjZhNjhkNDFiY2UwNzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5Xs0jmZN4w8sinp-PiKYSvsfJ10t12xRlYpDlZYJpsI)
map[string]string
但是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函数,是否还有错误的传值
中止上线函数存在同样问题,已同步修改
受影响的模块或功能
外部引用的潜在问题或风险
版本兼容性
测试建议
The text was updated successfully, but these errors were encountered: