Skip to content

调整 error 和 nil 最终返回的 JSON 值

Choose a tag to compare

@TommyLemon TommyLemon released this 09 Apr 15:30
· 3 commits to main since this release

解决 return error 转 JSON 返回的是空对象,改成了返回 Error() 的值;
解决 return nil 也转成了空对象 {},改成了直接返回 nil( JSON 转为 null);