...
|
...
|
@@ -234,6 +234,40 @@ class Home extends Base { |
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 统计
|
|
|
* @throws \Lib\Err
|
|
|
* @author:dc
|
|
|
* @time 2024/10/14 16:20
|
|
|
*/
|
|
|
public function count()
|
|
|
{
|
|
|
|
|
|
$where = [];
|
|
|
|
|
|
$where['folder_id'] = [];
|
|
|
|
|
|
// 目录
|
|
|
$folder = app()->request('folder', '收件箱');
|
|
|
$folderList = db()->all(folderSql::all($where['email_id']));
|
|
|
|
|
|
// 文件夹id
|
|
|
if ($folderList) {
|
|
|
foreach ($folderList as $item) {
|
|
|
if ($item['folder'] == $folder) {
|
|
|
$where['folder_id'][] = $item['id'];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 软删
|
|
|
$where['deleted'] = 0;
|
|
|
|
|
|
// 总数
|
|
|
$total = db()->count(listsSql::listCount(dbWhere($where)));
|
|
|
|
|
|
app()->_json(['total'=>$total]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 检测邮箱状态
|
...
|
...
|
@@ -859,7 +893,7 @@ class Home extends Base { |
|
|
|
|
|
// 是否再次 重新获取
|
|
|
$reload = app()->request('reload',0,'intval');
|
|
|
|
|
|
$data['allowreply'] = db()->value(folderSql::first(['id'=>$data['folder_id']],'folder'))!='发件箱'?1:0;
|
|
|
HOME_INFO_BODY:
|
|
|
$body = db()->first(bodySql::first($id));
|
|
|
if($body && !$reload){
|
...
|
...
|
|