mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-12 10:31:07 +08:00
Compare commits
2 Commits
b73af56831
...
e64952022d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e64952022d | ||
|
|
72ef61b732 |
@ -89,7 +89,7 @@ class File extends Controller
|
||||
public function distinct()
|
||||
{
|
||||
$map = ['uuid' => AdminService::getUserId()];
|
||||
$db1 = SystemFile::mk()->fieldRaw('max(id) id')->where($map)->group('type,hash');
|
||||
$db1 = SystemFile::mk()->fieldRaw('max(id) id')->where($map)->group('type,xkey');
|
||||
$db2 = $this->app->db->table($db1->buildSql())->alias('dt')->field('id');
|
||||
SystemFile::mk()->whereRaw("id not in {$db2->buildSql()}")->delete();
|
||||
$this->success('清理重复文件成功!');
|
||||
|
||||
@ -126,9 +126,9 @@
|
||||
<label class="layui-hide" id="ImageDialogUploadLayout">
|
||||
<!-- 图片上传组件 开始 -->
|
||||
{if isset($get.file) && $get.file eq 'image'}
|
||||
<button class="layui-btn" data-file data-type="png,jpg,jpeg,gif"></button>
|
||||
<button class="layui-btn" data-file data-path="{$get.path|default=''}" data-type="png,jpg,jpeg,gif"></button>
|
||||
{else}
|
||||
<button class="layui-btn" data-file="mul" data-type="png,jpg,jpeg,gif"></button>
|
||||
<button class="layui-btn" data-file="mul" data-path="{$get.path|default=''}" data-type="png,jpg,jpeg,gif"></button>
|
||||
{/if}
|
||||
<!-- 图片上传组件 结束 -->
|
||||
</label>
|
||||
Loading…
x
Reference in New Issue
Block a user