1000) { return; } // 剔除已离职人员邮箱 $sendEmails = []; if(is_array($emails)){ foreach($emails as $email) { if(!in_array($email, self::DISABLE_EMAIL)) { $sendEmails[] = $email; } } } if(empty($sendEmails)) { return; } $emailData = json_encode([ 'title' => $title, 'content' => $content, 'emails' => (array) $sendEmails, 'sender' => $sender ], JSON_UNESCAPED_UNICODE); RedisModel::rPush(self::KEY, $emailData); } }