|
@@ -51,7 +51,7 @@ class MailList extends Base { |
|
@@ -51,7 +51,7 @@ class MailList extends Base { |
51
|
}
|
51
|
}
|
52
|
}
|
52
|
}
|
53
|
|
53
|
|
54
|
- $where = ['email_id'=>$this->getEmails('id')];
|
54
|
+ $where = ['lists|email_id'=>$this->getEmails('id')];
|
55
|
|
55
|
|
56
|
// 目录
|
56
|
// 目录
|
57
|
$folder = app()->request('folder','收件箱');
|
57
|
$folder = app()->request('folder','收件箱');
|
|
@@ -72,7 +72,7 @@ class MailList extends Base { |
|
@@ -72,7 +72,7 @@ class MailList extends Base { |
72
|
$extSql = "f";
|
72
|
$extSql = "f";
|
73
|
}
|
73
|
}
|
74
|
// 查询 文件夹
|
74
|
// 查询 文件夹
|
75
|
- $folderList = db()->all(folderSql::all($where['email_id']));
|
75
|
+ $folderList = db()->all(folderSql::all($this->getEmails('id')));
|
76
|
$folder_id = [];
|
76
|
$folder_id = [];
|
77
|
// 文件夹id
|
77
|
// 文件夹id
|
78
|
if($folderList){
|
78
|
if($folderList){
|
|
@@ -124,10 +124,10 @@ class MailList extends Base { |
|
@@ -124,10 +124,10 @@ class MailList extends Base { |
124
|
}
|
124
|
}
|
125
|
|
125
|
|
126
|
|
126
|
|
127
|
- $filed = '`id`,`uid`,`subject`,`from`,`from_name`,`flagged`,`seen`,`udate`,`folder_id`,`is_file`,`description`,`email_id`,`to_name`';
|
127
|
+ $filed = '`id`,`uid`,`subject`,`from`,`from_name`,`flagged`,`seen`,`udate`,`folder_id`,`is_file`,`description`,`lists`.`email_id`,`to_name`';
|
128
|
|
128
|
|
129
|
if($extSql){
|
129
|
if($extSql){
|
130
|
- $sql = "select %s from `lists` join left `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where);
|
130
|
+ $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where);
|
131
|
}else{
|
131
|
}else{
|
132
|
$sql = "select %s from `lists` where ".dbWhere($where);
|
132
|
$sql = "select %s from `lists` where ".dbWhere($where);
|
133
|
}
|
133
|
}
|