...
|
...
|
@@ -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]);
|
...
|
...
|
|