...
|
...
|
@@ -188,7 +188,7 @@ function web_request_emails():array { |
|
|
$emails = app()->request('emails');
|
|
|
$emails = is_array($emails) ? $emails : [$emails];
|
|
|
foreach ($emails as $k=>$email){
|
|
|
if(!preg_match('/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/',$email)){
|
|
|
if(!\Lib\Verify::email($email)){
|
|
|
unset($emails[$k]);
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -200,6 +200,25 @@ function web_request_emails():array { |
|
|
return array_values($emails);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 前端获取邮箱一个
|
|
|
* @return string
|
|
|
* @throws \Lib\Err
|
|
|
* @author:dc
|
|
|
* @time 2023/3/10 16:05
|
|
|
*/
|
|
|
function web_request_email():string {
|
|
|
$email = app()->request('email');
|
|
|
|
|
|
if(!\Lib\Verify::email($email)){
|
|
|
app()->e('email_request_required');
|
|
|
}
|
|
|
|
|
|
return $email;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 分页数据
|
...
|
...
|
|