|
@@ -73,4 +73,24 @@ SCR;
|
|
|
echo($index);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 给玩家发邮件
|
|
|
+ * @param type $uid
|
|
|
+ * @param type $zoneid
|
|
|
+ * @param type $items
|
|
|
+ * @param type $ctx
|
|
|
+ */
|
|
|
+ public function sendUserEmail($uid,$zoneid,$title,$reward,$ctx) {
|
|
|
+ $mail = new Ins_Email(null,1, $title, #
|
|
|
+ $ctx, $reward);
|
|
|
+ $list = explode(',', $uid);
|
|
|
+ if(count($list) != 0){
|
|
|
+ foreach ($list as $userId) {
|
|
|
+ EmailProc::InsertMail($zoneid, $userId, $mail);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ echo '邮件已经成功发送';
|
|
|
+ }
|
|
|
+
|
|
|
}
|