修复: return error status默认为-1
This commit is contained in:
parent
29bfeabb20
commit
b06e29260a
|
@ -3,7 +3,7 @@ module RenderHelper
|
|||
render json: { status: 0, message: 'success' }.merge(data)
|
||||
end
|
||||
|
||||
def render_error(message = '')
|
||||
def render_error(message = '', status = -1)
|
||||
render json: { status: status, message: message }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue