comment为null时,markdown转换报500 #1848
Andy-njupt
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我在用postman调试提交评论的接口时,payload没有给任何东西,response虽然500报错,但是数据库中存了这样一条comment为null的数据。在ui后台,调用get评论的接口时markdown转换过程中应该是因无法解析null,而报了Input data should be a String,500的error;这里是否可以做个兼容。
另外,前端是否有控制没有填写评论无法提交的配置项,我想在用户未填写评论内容时无法提交评论。
Beta Was this translation helpful? Give feedback.
All reactions