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