904118851 8 mēneši atpakaļ
vecāks
revīzija
fe941dabf0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      common/dbproxy/tg_zhanghu.lua

+ 1 - 1
common/dbproxy/tg_zhanghu.lua

@@ -143,7 +143,7 @@ function M.search_info_by_id(msg_body)
         local sql = string.format("SELECT * FROM advertiser WHERE advertiser_id = '%s' LIMIT 1",zhang_hu_id)
         local res = mysqldbx.query(sql)
         if #res >0 then
-            table.insert(temp,#temp,res[1])
+            table.insert(temp,#temp+1,res[1])
         end
     end
     return true,temp