对接口正确返回正确结果200
This commit is contained in:
parent
c41075f2b5
commit
bdf2d82a37
|
|
@ -7,6 +7,7 @@ local _M = {}
|
|||
|
||||
function _M:json(status, message, data, http_status)
|
||||
-- you can modify this response struct as you favor
|
||||
if status == 0 then status = ngx.ok end
|
||||
local msg = message
|
||||
local response_status = http_status or ngx.OK
|
||||
if msg == nil or msg == '' then
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
--ngx.HTTP_GATEWAY_TIMEOUT (504)
|
||||
return {
|
||||
-- 系统状态码
|
||||
[0x000000] = 'ok',
|
||||
[0x0000C8] = 'ok',
|
||||
[0x000001] = '验证错误',
|
||||
[0x000002] = '系统错误',
|
||||
[0x000003] = '系统异常',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user