...
|
...
|
@@ -114,7 +114,7 @@ class Mail { |
|
|
$folder['parseFolder'] = explode('/',$folder['parseFolder'])[1];
|
|
|
}
|
|
|
|
|
|
if(!$db->count(folderSql::has(['uuid'=>$uuid]))){
|
|
|
|
|
|
try {
|
|
|
$folder_name = '';
|
|
|
// 已发送
|
...
|
...
|
@@ -137,7 +137,7 @@ class Mail { |
|
|
if(!$folder_name){
|
|
|
$folder_name = folderAlias($folder['parseFolder']);
|
|
|
}
|
|
|
|
|
|
if(!$db->count(folderSql::has(['uuid'=>$uuid]))){
|
|
|
$db->insert(folderSql::$table,[
|
|
|
'email_id' => $email_id,
|
|
|
'folder' => folderAlias($folder_name),
|
...
|
...
|
@@ -145,10 +145,19 @@ class Mail { |
|
|
'uuid' => $uuid,
|
|
|
'pid' => $pid
|
|
|
],false);
|
|
|
}else{
|
|
|
$db->update(folderSql::$table,[
|
|
|
'email_id' => $email_id,
|
|
|
'folder' => folderAlias($folder_name),
|
|
|
'origin_folder' => $folder['folder'],
|
|
|
'uuid' => $uuid,
|
|
|
'pid' => $pid
|
|
|
],dbWhere(['email_id' => $email_id,'uuid' => $uuid]),false);
|
|
|
}
|
|
|
}catch (\Throwable $e){
|
|
|
// 这里就不处理失败了
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
...
|
...
|
|