|
@@ -36,7 +36,6 @@ function M.getConfig()
|
|
local sql = string.format("select config from `db_filter_config` WHERE config_id = 1 ")
|
|
local sql = string.format("select config from `db_filter_config` WHERE config_id = 1 ")
|
|
local res = mysqldbx.query(sql)
|
|
local res = mysqldbx.query(sql)
|
|
local obj = {}
|
|
local obj = {}
|
|
- tools.dump(res)
|
|
|
|
if #res>0 and res[1].config~=nil then
|
|
if #res>0 and res[1].config~=nil then
|
|
obj = cjson.decode(res[1].config)
|
|
obj = cjson.decode(res[1].config)
|
|
else
|
|
else
|
|
@@ -52,7 +51,7 @@ function M.getConfig()
|
|
genre = 1,
|
|
genre = 1,
|
|
source_filter = {"来源1","来源2"}
|
|
source_filter = {"来源1","来源2"}
|
|
}
|
|
}
|
|
- M.config(obj)
|
|
|
|
|
|
+ M.modifyConfig(obj)
|
|
end
|
|
end
|
|
shaixuan_config = obj;
|
|
shaixuan_config = obj;
|
|
end
|
|
end
|