修复: return error status默认为-1

This commit is contained in:
yystopf 2022-08-01 14:28:44 +08:00
parent 29bfeabb20
commit b06e29260a
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module RenderHelper
render json: { status: 0, message: 'success' }.merge(data) render json: { status: 0, message: 'success' }.merge(data)
end end
def render_error(message = '') def render_error(message = '', status = -1)
render json: { status: status, message: message } render json: { status: status, message: message }
end end