Commit bc50c9714b3941fe2ecca44f21822c8dbeb16eab
Merge remote-tracking branch 'origin/cn/develop' into cn/develop
Showing
5 changed files
with
18 additions
and
2 deletions
Show diff stats
robot/robot.lua
... | ... | @@ -136,6 +136,18 @@ function CMD.task() |
136 | 136 | startUnit() |
137 | 137 | end |
138 | 138 | |
139 | +function randomName() | |
140 | + local str = "1234567890abcdefghijklmnopqrstuvwxyz" | |
141 | + local len = #str | |
142 | + local result = "" | |
143 | + for i=1,10 do | |
144 | + local idx = math.random(1, len) | |
145 | + result = result .. string.sub(str, idx, idx) | |
146 | + end | |
147 | + | |
148 | + return result | |
149 | +end | |
150 | + | |
139 | 151 | -- 开始登录 |
140 | 152 | function CMD.start(fd, id) |
141 | 153 | client.fd = fd | ... | ... |
src/GlobalVar.lua
src/actions/GmAction.lua
... | ... | @@ -729,6 +729,8 @@ function _M.cz(role, pms) |
729 | 729 | pay_time = skynet.timex(), |
730 | 730 | sid = sid == 1 and IOS_SID or 0, |
731 | 731 | }) |
732 | + -- 补发邮件 | |
733 | + role:sendMail(MailId.RechargeBack) | |
732 | 734 | role:mylog("gm_action", {desc = "recharge", int1 = id, key1 = pms.sender}) |
733 | 735 | return "指令成功" |
734 | 736 | end | ... | ... |
src/agent.lua