作者 邓超

1

... ... @@ -97,6 +97,19 @@ class Home extends Base {
}
/**
* 检测邮箱状态
* @author:dc
* @time 2023/3/28 16:19
*/
public function check(){
$lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`'));
return array_column($lists,'pwd_error','email');
}
/**
* 发送邮件
... ...
... ... @@ -82,7 +82,7 @@ class Login {
if($ret){
app()->_json(db()->first(emailSql::first($formData['email'],'`id`,`email`,`last_sync_time`')));
app()->_json(db()->first(emailSql::first($formData['email'])));
}
app()->e('login_error');
... ...
... ... @@ -60,7 +60,7 @@ class emailSql {
* @author:dc
* @time 2023/3/10 10:46
*/
public static function getValues($where,$field='`id`'){
public static function getValues(array $where,$field='`id`'){
return "select {$field} from `".static::$table."` where ".dbWhere($where);
}
... ...
... ... @@ -33,6 +33,8 @@ return [
'seen_2_unseen' => [\Controller\Home::class, 'seen_2_unseen'],
// 邮件移动文件夹
'move' => [\Controller\Home::class, 'move'],
// 检查邮箱状态
'check' => [\Controller\Home::class, 'check']
... ...