...
|
...
|
@@ -61,17 +61,21 @@ class Mail { |
|
|
$folder['name'] = explode('/',$folder['parseFolder']);
|
|
|
$pid = 0;
|
|
|
foreach ($folder['id'] as $k=>$item){
|
|
|
// 插入到数据库
|
|
|
$pid = $db->insert(
|
|
|
folderSql::$table,
|
|
|
[
|
|
|
'email_id' => $email_id,
|
|
|
'folder' => $folder['name'][$k],
|
|
|
'origin_folder' => $item,
|
|
|
'pid' => $pid
|
|
|
]
|
|
|
,false
|
|
|
);
|
|
|
$data = [
|
|
|
'email_id' => $email_id,
|
|
|
'folder' => $folder['name'][$k],
|
|
|
'origin_folder' => $item,
|
|
|
'pid' => $pid
|
|
|
];
|
|
|
|
|
|
if(!$db->value(folderSql::has($data))){
|
|
|
// 插入到数据库
|
|
|
$pid = $db->insert(
|
|
|
folderSql::$table,
|
|
|
$data,
|
|
|
false
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$db->commit();
|
...
|
...
|
|