|
@@ -46,25 +46,25 @@ M.checkData= function(origin,table)
|
|
|
end
|
|
|
|
|
|
M.dump = function(res, tab)
|
|
|
- tab = tab or 0
|
|
|
- if(tab == 0) then
|
|
|
- skynet.error("............dump...........")
|
|
|
- end
|
|
|
+ -- tab = tab or 0
|
|
|
+ -- if(tab == 0) then
|
|
|
+ -- skynet.error("............dump...........")
|
|
|
+ -- end
|
|
|
|
|
|
- if type(res) == "table" then
|
|
|
- skynet.error(string.rep("\t", tab).."{")
|
|
|
- for k,v in pairs(res) do
|
|
|
- if type(v) == "table" then
|
|
|
- skynet.error(k.."=")
|
|
|
- M.dump(v, tab + 1)
|
|
|
- else
|
|
|
- skynet.error(string.rep("\t", tab), k, "=", v, ",")
|
|
|
- end
|
|
|
- end
|
|
|
- skynet.error(string.rep("\t", tab).."}")
|
|
|
- else
|
|
|
- skynet.error(string.rep("\t", tab) , res)
|
|
|
- end
|
|
|
+ -- if type(res) == "table" then
|
|
|
+ -- skynet.error(string.rep("\t", tab).."{")
|
|
|
+ -- for k,v in pairs(res) do
|
|
|
+ -- if type(v) == "table" then
|
|
|
+ -- skynet.error(k.."=")
|
|
|
+ -- M.dump(v, tab + 1)
|
|
|
+ -- else
|
|
|
+ -- skynet.error(string.rep("\t", tab), k, "=", v, ",")
|
|
|
+ -- end
|
|
|
+ -- end
|
|
|
+ -- skynet.error(string.rep("\t", tab).."}")
|
|
|
+ -- else
|
|
|
+ -- skynet.error(string.rep("\t", tab) , res)
|
|
|
+ -- end
|
|
|
end
|
|
|
|
|
|
M.getDbResData = function(res)
|