| 
...
 | 
...
 | 
@@ -46,11 +46,19 @@ class Home extends Base { | 
| 
 | 
 | 
         $folder_id = (int) app()->request('folder_id');
 | 
| 
 | 
 | 
         // 附件
 | 
| 
 | 
 | 
         $attachment =   app()->request('attachment');
 | 
| 
 | 
 | 
         // 已读/未读
 | 
| 
 | 
 | 
         $seen =   app()->request('seen',-1,'intval');
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $where = ['email_id'=>$this->getEmails('id')];
 | 
| 
 | 
 | 
         //目录
 | 
| 
 | 
 | 
         if($folder_id) $where['folder_id'] = $folder_id;
 | 
| 
 | 
 | 
         if($ids) $where['id'] = $ids;
 | 
| 
 | 
 | 
         if($attachment) $where['is_file'] = 1; //附件
 | 
| 
 | 
 | 
         // 已读/未读
 | 
| 
 | 
 | 
         if(in_array($seen,[0,1])){
 | 
| 
 | 
 | 
             $where['seen'] = $seen;
 | 
| 
 | 
 | 
         }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $lists = db()->all(
 | 
| 
 | 
 | 
             listsSql::lists(
 | 
| 
...
 | 
...
 | 
@@ -132,6 +140,9 @@ class Home extends Base { | 
| 
 | 
 | 
             app()->e('sync_request_param_error');
 | 
| 
 | 
 | 
         }else{
 | 
| 
 | 
 | 
             // 查询id
 | 
| 
 | 
 | 
             if(count($emails)===1){
 | 
| 
 | 
 | 
                 $emails = $emails[0];
 | 
| 
 | 
 | 
             }
 | 
| 
 | 
 | 
             $datas = db()->all(emailSql::getValues(['email'=>$emails],'`id`,`email`,`pwd_error`'));
 | 
| 
 | 
 | 
             foreach ($datas as $k=>$v){
 | 
| 
 | 
 | 
                 if(!$v['pwd_error']){
 | 
...
 | 
...
 | 
 |