mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
Update File.php
This commit is contained in:
parent
022fe90134
commit
300c40f560
@ -92,6 +92,6 @@ class File extends Controller
|
||||
$db1 = SystemFile::mk()->fieldRaw('max(id) id')->where($map)->group('type,hash');
|
||||
$db2 = $this->app->db->table($db1->buildSql())->alias('dt')->field('id');
|
||||
SystemFile::mk()->whereRaw("id not in {$db2->buildSql()}")->delete();
|
||||
$this->success('清理重复文件记录');
|
||||
$this->success('清理重复文件成功!');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user