zhanwencai преди 1 година
родител
ревизия
0d88ce83d2
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      script/module/scene/Handler.lua

+ 6 - 0
script/module/scene/Handler.lua

@@ -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