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

系统设置保存出错 #71

Open
263055 opened this issue Jan 9, 2023 · 2 comments
Open

系统设置保存出错 #71

263055 opened this issue Jan 9, 2023 · 2 comments

Comments

@263055
Copy link

263055 commented Jan 9, 2023

鄙人发现了一个小bug,在系统设置页面点击保存的时候会弹出失败窗口。
但是刷新后,发现input标签中的数据确实保存了上去。
原因:前端列出了12条数据,后端t_options却13条数据,多了一个数据(site_keywords字段),
故而导致转换流时报错误(此时数据已保存上去,但因转换流的报错,故而前端提示保存失败)
底层:(1)因为底层的代码实现是,先对输入的数据进行保存(即t_options表)
(2)然后重新获得所有的数据转换为流然后重新对 "WebConst.initConfig" 复制
解决方法:删除t_options表中的site_keywords字段
这里我有一个问题: "WebConst.initConfig = options.stream().collect(Collectors.toMap(OptionsDomain::getName,OptionsDomain::getValue));
" 这段代码是干什么用的,还请指教

@WinterChenS
Copy link
Owner

@263055 欢迎提PR

@Secret111123
Copy link

为什么我打开系统设置就跳转到500状态!查看日志说是setting.html文件里的options.site_title这个部分有问题。苦恼啊系统设置打都打不开

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

No branches or pull requests

3 participants