正在显示
4 个修改的文件
包含
17 行增加
和
2 行删除
| @@ -97,6 +97,19 @@ class Home extends Base { | @@ -97,6 +97,19 @@ class Home extends Base { | ||
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | 99 | ||
| 100 | + /** | ||
| 101 | + * 检测邮箱状态 | ||
| 102 | + * @author:dc | ||
| 103 | + * @time 2023/3/28 16:19 | ||
| 104 | + */ | ||
| 105 | + public function check(){ | ||
| 106 | + | ||
| 107 | + $lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`')); | ||
| 108 | + | ||
| 109 | + return array_column($lists,'pwd_error','email'); | ||
| 110 | + | ||
| 111 | + } | ||
| 112 | + | ||
| 100 | 113 | ||
| 101 | /** | 114 | /** |
| 102 | * 发送邮件 | 115 | * 发送邮件 |
| @@ -82,7 +82,7 @@ class Login { | @@ -82,7 +82,7 @@ class Login { | ||
| 82 | 82 | ||
| 83 | 83 | ||
| 84 | if($ret){ | 84 | if($ret){ |
| 85 | - app()->_json(db()->first(emailSql::first($formData['email'],'`id`,`email`,`last_sync_time`'))); | 85 | + app()->_json(db()->first(emailSql::first($formData['email']))); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | app()->e('login_error'); | 88 | app()->e('login_error'); |
| @@ -60,7 +60,7 @@ class emailSql { | @@ -60,7 +60,7 @@ class emailSql { | ||
| 60 | * @author:dc | 60 | * @author:dc |
| 61 | * @time 2023/3/10 10:46 | 61 | * @time 2023/3/10 10:46 |
| 62 | */ | 62 | */ |
| 63 | - public static function getValues($where,$field='`id`'){ | 63 | + public static function getValues(array $where,$field='`id`'){ |
| 64 | return "select {$field} from `".static::$table."` where ".dbWhere($where); | 64 | return "select {$field} from `".static::$table."` where ".dbWhere($where); |
| 65 | } | 65 | } |
| 66 | 66 |
| @@ -33,6 +33,8 @@ return [ | @@ -33,6 +33,8 @@ return [ | ||
| 33 | 'seen_2_unseen' => [\Controller\Home::class, 'seen_2_unseen'], | 33 | 'seen_2_unseen' => [\Controller\Home::class, 'seen_2_unseen'], |
| 34 | // 邮件移动文件夹 | 34 | // 邮件移动文件夹 |
| 35 | 'move' => [\Controller\Home::class, 'move'], | 35 | 'move' => [\Controller\Home::class, 'move'], |
| 36 | + // 检查邮箱状态 | ||
| 37 | + 'check' => [\Controller\Home::class, 'check'] | ||
| 36 | 38 | ||
| 37 | 39 | ||
| 38 | 40 |
-
请 注册 或 登录 后发表评论