正在显示
1 个修改的文件
包含
10 行增加
和
1 行删除
@@ -214,7 +214,16 @@ function dbUpdate(array $data):string { | @@ -214,7 +214,16 @@ function dbUpdate(array $data):string { | ||
214 | */ | 214 | */ |
215 | function web_request_emails():array { | 215 | function web_request_emails():array { |
216 | $emails = app()->request('emails'); | 216 | $emails = app()->request('emails'); |
217 | - $emails = is_array($emails) ? $emails : [$emails]; | 217 | + |
218 | + if(is_array($emails)){ | ||
219 | + | ||
220 | + }elseif(strpos($emails,',') > 0){ | ||
221 | + $emails = explode(',',$emails); | ||
222 | + }else{ | ||
223 | + $emails = [$emails]; | ||
224 | + } | ||
225 | + | ||
226 | +// $emails = is_array($emails) ? $emails : [$emails]; | ||
218 | foreach ($emails as $k=>$email){ | 227 | foreach ($emails as $k=>$email){ |
219 | if(!$email || !\Lib\Verify::sEmail($email)){ | 228 | if(!$email || !\Lib\Verify::sEmail($email)){ |
220 | unset($emails[$k]); | 229 | unset($emails[$k]); |
-
请 注册 或 登录 后发表评论