作者 邓超

x

正在显示 1 个修改的文件 包含 10 行增加1 行删除
... ... @@ -214,7 +214,16 @@ function dbUpdate(array $data):string {
*/
function web_request_emails():array {
$emails = app()->request('emails');
$emails = is_array($emails) ? $emails : [$emails];
if(is_array($emails)){
}elseif(strpos($emails,',') > 0){
$emails = explode(',',$emails);
}else{
$emails = [$emails];
}
// $emails = is_array($emails) ? $emails : [$emails];
foreach ($emails as $k=>$email){
if(!$email || !\Lib\Verify::sEmail($email)){
unset($emails[$k]);
... ...