Skip to content

Commit

Permalink
add extend
Browse files Browse the repository at this point in the history
  • Loading branch information
spout committed Apr 8, 2014
1 parent 09dc5a9 commit 9b2ca36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/trymenu/lib/mysql_class2.lua
Expand Up @@ -123,7 +123,7 @@ function Mysql_CLass:getDateByDb() --缓存没有命中,从数据库读取数

local sqlCmd = self:genSqlCmd(self.reqTable.city) -- 生成sql语句

--ngx.log(ngx.ERR, sqlCmd)
-- ngx.log(ngx.ERR, sqlCmd)

local res, err, errno, sqlstate = db:query(sqlCmd) -- 执行sql语句

Expand Down Expand Up @@ -239,7 +239,7 @@ function Mysql_CLass:genSqlCmd(site) --创建数据库查询字符串

local now = os.date("%Y-%m-%d %H:%M:%S", os.time())

local property = "GAME_LIST_ITEM.Id, ItemType, Itemname, ItemNewTip, ItemExtraTip, Changed, parentId, Icon, ItemID, ItemUrl, OpenType, Width, Height, ItemParent, mycategorycode, HelpURL, ServerVersion, EName, channelcode, rootcode, mygamecode, WatchCrash, ServerID, GameServerAddr, GameServerPort, MinVer, MaxVer, MaxUser, GameTypeName, Game.ProgName,"
local property = "GAME_LIST_ITEM.Id, ItemType, Itemname, ItemNewTip, ItemExtraTip, Changed, parentId, Icon, ItemID, ItemUrl, OpenType, Width, Height, ItemParent, mycategorycode, HelpURL, ServerVersion, EName, channelcode, rootcode, mygamecode, WatchCrash, ServerID, GameServerAddr, GameServerPort, MinVer, MaxVer, MaxUser, GameTypeName, Game.ProgName, GAME_LIST_ITEM.Extend,"

local writeTimeCol = '(CASE\n'..
'WHEN GAME_LIST_ITEM.writetime > IFNULL(Game.writetime, \'2000-01-01\') THEN GAME_LIST_ITEM.writetime \n'..
Expand Down

0 comments on commit 9b2ca36

Please sign in to comment.