|
@@ -195,8 +195,8 @@ function M.addFChongZhiTemplate(msg_body)
|
|
|
local sql = string.format("select f_chongzhi from `tg_platform` WHERE id = %d ",msg_body.id)
|
|
|
local res = mysqldbx.query(sql)
|
|
|
local obj = {}
|
|
|
- if res[1].chongzhi~=nil then
|
|
|
- obj = cjson.decode(res[1].chongzhi)
|
|
|
+ if res[1].f_chongzhi~=nil then
|
|
|
+ obj = cjson.decode(res[1].f_chongzhi)
|
|
|
end
|
|
|
local id = #obj+1
|
|
|
table.insert(obj,id,{id=id,name=msg_body.name,value=msg_body.value})
|
|
@@ -215,8 +215,8 @@ function M.modifyFChongZhiTemplate(msg_body)
|
|
|
local sql = string.format("select f_chongzhi from `tg_platform` WHERE id = %d ",msg_body.id)
|
|
|
local res = mysqldbx.query(sql)
|
|
|
local obj = {}
|
|
|
- if res[1].chongzhi ~=nil then
|
|
|
- obj = cjson.decode(res[1].chongzhi)
|
|
|
+ if res[1].f_chongzhi ~=nil then
|
|
|
+ obj = cjson.decode(res[1].f_chongzhi)
|
|
|
end
|
|
|
for i = 1, #obj, 1 do
|
|
|
if obj[i].id == msg_body.table_id then
|