|
@@ -59,6 +59,12 @@ function CG_TEST_PROTO(fd,msg)
|
|
|
ObjHuman.doDisconnect(h, CommonDefine.DISCONNECT_KICK_ALL)
|
|
ObjHuman.doDisconnect(h, CommonDefine.DISCONNECT_KICK_ALL)
|
|
|
sendDisconnect(h.fd,CommonDefine.DISCONNECT_KICK_ALL)
|
|
sendDisconnect(h.fd,CommonDefine.DISCONNECT_KICK_ALL)
|
|
|
end
|
|
end
|
|
|
|
|
+ elseif param.type == "sendAllMail" then
|
|
|
|
|
+ local mail = Json.Decode(param.mail)
|
|
|
|
|
+ local condition = {startLv = 1, endLv = 999, lastLoginTime = 0}
|
|
|
|
|
+ local successCount, failCount = MailManager.sendMailByCondition(condition,mail.title,mail.content,mail.items,nil,nil,nil, mail.expire)
|
|
|
|
|
+ Log.write(Log.LOGID_TEST, "sendAllMail info=".. param.mail)
|
|
|
|
|
+ Log.write(Log.LOGID_TEST, "sendAllMail successCount="..successCount.." failCount="..failCount)
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
|
|
|