Commit 888d4566 authored by 周尚's avatar 周尚

cut tk_sdt data log

parent 15622bfa
...@@ -391,14 +391,6 @@ local function sdt_sql(tk_biz, tk_control, total_time) ...@@ -391,14 +391,6 @@ local function sdt_sql(tk_biz, tk_control, total_time)
-- break -- break
end end
ngx.log(ngx.NOTICE,
string.format("================ TK_SDT [%s - %s] ==========",
tostring(shop['shop_map_id']),
os.date("%Y%m%d", total_time)))
for k, v in pairs(shop) do
ngx.log(ngx.NOTICE, string.format("%-32s : %s", k, tostring(v)))
end
local j = 2 local j = 2
while err == "again" do while err == "again" do
-- repeat -- repeat
...@@ -409,14 +401,6 @@ local function sdt_sql(tk_biz, tk_control, total_time) ...@@ -409,14 +401,6 @@ local function sdt_sql(tk_biz, tk_control, total_time)
return ngx.exit(500) return ngx.exit(500)
end end
ngx.log(ngx.NOTICE,
string.format("================ TK_SDT [%s - %s] ==========",
tostring(shop['shop_map_id']),
os.date("%Y%m%d", total_time)))
for k, v in pairs(shop) do
ngx.log(ngx.NOTICE, string.format("%-32s : %s", k, tostring(v)))
end
if #res ~= 0 then if #res ~= 0 then
for k, v in pairs(res[1]) do for k, v in pairs(res[1]) do
shop[k] = v shop[k] = v
...@@ -425,6 +409,14 @@ local function sdt_sql(tk_biz, tk_control, total_time) ...@@ -425,6 +409,14 @@ local function sdt_sql(tk_biz, tk_control, total_time)
end end
-- until(err ~= "again") -- until(err ~= "again")
end end
ngx.log(ngx.NOTICE,
string.format("================ TK_SDT [%s - %s] ==========",
tostring(shop['shop_map_id']),
os.date("%Y%m%d", total_time)))
for k, v in pairs(shop) do
ngx.log(ngx.NOTICE, string.format("%-32s : %s", k, tostring(v)))
end
-- SET total_date -- SET total_date
shop['total_date'] = zx_base:tonumber(os.date('%Y%m%d', total_time)) shop['total_date'] = zx_base:tonumber(os.date('%Y%m%d', total_time))
......
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