|
@@ -24,10 +24,7 @@ function M.modifyConfig(msg_body)
|
|
|
local sql = string.format("UPDATE `db_filter_config` SET config = '%s' WHERE config_id = 1 ",
|
|
|
cjson.encode(msg_body))
|
|
|
local res = mysqldbx.query(sql)
|
|
|
- tools.dump(res)
|
|
|
- if res.Warnings == 0 then
|
|
|
- shaixuan_config = msg_body
|
|
|
- end
|
|
|
+ shaixuan_config = msg_body
|
|
|
skynet.send("backmgr","lua","on_recv",nil,"ws_push_msg",cjson.encode({cmd="updateFilterConfig"}))
|
|
|
return true
|
|
|
end
|