Commit e4ff71cd6f054ed0cae4a50a73328a2e6c11da25
1 parent
1cbe35d8
去除sql语句日志
Showing
3 changed files
with
2 additions
and
3 deletions
Show diff stats
src/models/RolePlugin.lua
... | ... | @@ -1756,7 +1756,7 @@ function RolePlugin.bind(Role) |
1756 | 1756 | rechargeId = rechargeId, |
1757 | 1757 | createTime = skynet.timex(), |
1758 | 1758 | transactionId = transactionId, |
1759 | - sid = role:getProperty("sid"), | |
1759 | + sid = self:getProperty("sid"), | |
1760 | 1760 | }) |
1761 | 1761 | order:create() |
1762 | 1762 | -- 正在进行中的订单 缓存 | ... | ... |
src/shared/ModelBaseMysql.lua
... | ... | @@ -111,7 +111,6 @@ function ModelBaseMysql:load(properties) |
111 | 111 | end |
112 | 112 | |
113 | 113 | if not properties then |
114 | - print(string_format("SELECT * from %s where `%s` = %s;", self.class.__cname, self.pri_key, self:getKey())) | |
115 | 114 | properties = mysqlproxy:query(string_format("SELECT * from %s where `%s` = %s;", self.class.__cname, self.pri_key, self:getKey())) |
116 | 115 | end |
117 | 116 | if not next(properties) then return false end | ... | ... |