Commit a8bab292bd94667ad44a5ec9e02d6676a930453f
1 parent
29c70fba
离线对象保存bug
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
src/actions/HttpAction.lua
... | ... | @@ -143,7 +143,7 @@ function _M.gm_action(query) |
143 | 143 | role:startActionUcode() |
144 | 144 | local status = gmFuncs[query.cmd](role, query) |
145 | 145 | role:endActionUcode() |
146 | - role:update() | |
146 | + role:saveRoleData(skynet.timex()) | |
147 | 147 | |
148 | 148 | return status |
149 | 149 | end |
... | ... | @@ -174,6 +174,7 @@ function _M.pay_action(query) |
174 | 174 | role:startActionUcode() |
175 | 175 | local status = gmFuncs[query.cmd](role, query) |
176 | 176 | role:endActionUcode() |
177 | + role:saveRoleData(skynet.timex()) | |
177 | 178 | |
178 | 179 | return status |
179 | 180 | end | ... | ... |
src/models/RolePlugin.lua