-
Notifications
You must be signed in to change notification settings - Fork 17
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
设置响应状态码,解决未授权时返回的中文信息是unicode格式 #10
Comments
没看懂 |
当用户没有login时,调用某个方法,会经由SimpleAdminResultProvider的OnResponseStatusCodes返回消息给客户端。这时返回的中文是"\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"。如果把 |
好的 |
将SimpleAdminResultProvider的方法OnResponseStatusCodes去掉App.GetOptions()?.JsonSerializerOptions
返回值中的中文才不会出现"\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55",方能与其它action中的中文一致。
The text was updated successfully, but these errors were encountered: