904118851 il y a 8 mois
Parent
commit
6e589a226f
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      common/dbproxy/tg_platform.lua

+ 4 - 4
common/dbproxy/tg_platform.lua

@@ -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