...
|
...
|
@@ -31,15 +31,19 @@ class MailListV2 extends Base { |
|
|
* @time 2024/7/19 11:37
|
|
|
*/
|
|
|
private function getFolderId(string $folder,$emails=[]){
|
|
|
if(!$emails){
|
|
|
$emails = $this->getEmails('id');
|
|
|
}
|
|
|
$k = md5(json_encode($emails));
|
|
|
// 查询 文件夹
|
|
|
static $folderList;
|
|
|
if(!$folderList){
|
|
|
$folderList = db()->all(folderSql::all($emails?:$this->getEmails('id')));
|
|
|
if(empty($folderList[$k])){
|
|
|
$folderList[$k] = db()->all(folderSql::all($emails));
|
|
|
}
|
|
|
$folder_id = [];
|
|
|
// 文件夹id
|
|
|
if($folderList){
|
|
|
foreach ($folderList as $item){
|
|
|
if($folderList[$k]){
|
|
|
foreach ($folderList[$k] as $item){
|
|
|
if(folderAlias($item['folder']) == $folder){
|
|
|
$folder_id[] = $item['id'];
|
|
|
}
|
...
|
...
|
|