|
@@ -48,14 +48,14 @@ abstract class Base { |
|
@@ -48,14 +48,14 @@ abstract class Base { |
48
|
* @author:dc
|
48
|
* @author:dc
|
49
|
* @time 2023/3/10 16:07
|
49
|
* @time 2023/3/10 16:07
|
50
|
*/
|
50
|
*/
|
51
|
- protected final function getEmail($filed='*'){
|
51
|
+ protected final function getEmail($filed='*',$del=true){
|
52
|
static $data;
|
52
|
static $data;
|
53
|
if(empty($data)){
|
53
|
if(empty($data)){
|
54
|
$data = db()->cache(600)->first(emailSql::first(web_request_email()));
|
54
|
$data = db()->cache(600)->first(emailSql::first(web_request_email()));
|
55
|
if(empty($data)){
|
55
|
if(empty($data)){
|
56
|
app()->e('email_request_required');
|
56
|
app()->e('email_request_required');
|
57
|
}
|
57
|
}
|
58
|
- if($data['pwd_error']){
|
58
|
+ if($del && $data['pwd_error']){
|
59
|
app()->e('imap_password_error',403);
|
59
|
app()->e('imap_password_error',403);
|
60
|
}
|
60
|
}
|
61
|
}
|
61
|
}
|