Commit e8de4ba9 authored by 周尚's avatar 周尚

optimize settle API

parent b3c8c78d
...@@ -88,9 +88,17 @@ end ...@@ -88,9 +88,17 @@ end
local SETTLE = {} local SETTLE = {}
function SETTLE.run() function SETTLE.run()
local args = ngx.req.get_uri_args() local args = ngx.req.get_uri_args()
local t
for k, v in pairs(args) do for k, v in pairs(args) do
if k == "total_date" then if k == "total_date" then
local t = zx_base:date2time(v) t = zx_base:date2time(v)
end
end
if t == nil then
t = os.time()
end
-- settle features start -- settle features start
-- node_asb: run() -- node_asb: run()
-- node_asbdetail: run() -- node_asbdetail: run()
...@@ -115,8 +123,6 @@ function SETTLE.run() ...@@ -115,8 +123,6 @@ function SETTLE.run()
node_card: run(t) node_card: run(t)
node_ticket: run(t) node_ticket: run(t)
tk_sdt: run(t) tk_sdt: run(t)
end
end
end end
return SETTLE return SETTLE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment