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
json-rpc/src/CoreMiddleware.php
Line 52 in 522188e
可以这个位置修改成统一的格式吗,而且code固定为SERVER_ERROR了,可以交给用户抛出的code吗,在异常app\Exception\Handler\里面也无法修改响应格式
{ "code": -32000, "message": "No query results for model xx.", "data": { "class": "Hyperf\\Database\\Model\\ModelNotFoundException", "code": 0, "message": "No query results for model xx." } } { "code": 200, "data": { "no": "12345678" }, "message": "" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
json-rpc/src/CoreMiddleware.php
Line 52 in 522188e
可以这个位置修改成统一的格式吗,而且code固定为SERVER_ERROR了,可以交给用户抛出的code吗,在异常app\Exception\Handler\里面也无法修改响应格式
The text was updated successfully, but these errors were encountered: