正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
@@ -410,17 +410,17 @@ class Home extends Base { | @@ -410,17 +410,17 @@ class Home extends Base { | ||
410 | $datas[$k]['have_new'] = redis()->getDel('have_new_mail_'.$v['id']); | 410 | $datas[$k]['have_new'] = redis()->getDel('have_new_mail_'.$v['id']); |
411 | 411 | ||
412 | // 计算 | 412 | // 计算 |
413 | - $folders = db()->all(folderSql::all($v['id'],'`id`')); | ||
414 | - foreach ($folders as $folder){ | ||
415 | - $w = [ | ||
416 | - 'email_id' => $v['id'], | ||
417 | - 'folder_id' => $folder['id'], | ||
418 | - ]; | ||
419 | - db()->update(folderSql::$table,[ | ||
420 | - 'exsts' => db()->count(listsSql::listCount(dbWhere($w))), | ||
421 | - 'unseen' => db()->count(listsSql::listCount(dbWhere(array_merge($w,['seen'=>0])))), | ||
422 | - ],'`id` = '.$folder['id'],false); | ||
423 | - } | 413 | +// $folders = db()->all(folderSql::all($v['id'],'`id`')); |
414 | +// foreach ($folders as $folder){ | ||
415 | +// $w = [ | ||
416 | +// 'email_id' => $v['id'], | ||
417 | +// 'folder_id' => $folder['id'], | ||
418 | +// ]; | ||
419 | +// db()->update(folderSql::$table,[ | ||
420 | +// 'exsts' => db()->count(listsSql::listCount(dbWhere($w))), | ||
421 | +// 'unseen' => db()->count(listsSql::listCount(dbWhere(array_merge($w,['seen'=>0])))), | ||
422 | +// ],'`id` = '.$folder['id'],false); | ||
423 | +// } | ||
424 | 424 | ||
425 | } | 425 | } |
426 | // 返回成功的参数值 | 426 | // 返回成功的参数值 |
-
请 注册 或 登录 后发表评论