Commit a289c34c2d3bb234956b076f32d7a58440c48c67

Authored by zhouhaihai
1 parent a9a072ae

创建时间戳

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/EmailAction.lua
... ... @@ -43,7 +43,7 @@ function _M.listRpc(agent, data)
43 43 if tonum(email.createtime) > role:getProperty("ctime")
44 44 and ( not email.mid or tonum(email.mid) == mid )
45 45 and ( not email.endtime or tonum(email.endtime) > now )then
46   - local time = email.time and tonum(email.time) or email.createtime
  46 + local time = math.max(tonum(email.timestamp, 0) or email.createtime)
47 47 redisproxy:insertEmail({
48 48 roleId = roleId,
49 49 emailId = 0,
... ...