对接口正确返回正确结果200

This commit is contained in:
wanglei 2025-11-12 09:41:22 +08:00
parent c41075f2b5
commit bdf2d82a37
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -18,7 +18,7 @@
--ngx.HTTP_GATEWAY_TIMEOUT (504)
return {
-- 系统状态码
[0x000000] = 'ok',
[0x0000C8] = 'ok',
[0x000001] = '验证错误',
[0x000002] = '系统错误',
[0x000003] = '系统异常',