From 8c571fdd2f87effa331405fb2c2b0c848757b5e1 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sat, 24 Dec 2022 15:13:38 +0800 Subject: [PATCH] opt some --- base/web/share.go | 4 +++- misc/alpha/alpha.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/base/web/share.go b/base/web/share.go index e18ceaa7..e508b0b0 100644 --- a/base/web/share.go +++ b/base/web/share.go @@ -62,8 +62,10 @@ func _share_local(m *ice.Message, arg ...string) { m.Option(ice.MSG_USERROLE, aaa.TECH) } m.Cmd(SPACE, m.Option(ice.POD), SPIDE, ice.DEV, SPIDE_RAW, MergeLink(m, SHARE_PROXY), SPIDE_PART, m.OptionSimple(ice.POD), nfs.PATH, p, nfs.SIZE, size, CACHE, cache.Format(ice.MOD_TIME), UPLOAD, "@"+p) - if !m.Warn(!file.ExistsFile(pp), ice.ErrNotFound, pp) { + if file.ExistsFile(pp) { m.RenderDownload(pp) + } else { + m.RenderDownload(p) } } func _share_proxy(m *ice.Message) { diff --git a/misc/alpha/alpha.go b/misc/alpha/alpha.go index 08f359ad..da860546 100644 --- a/misc/alpha/alpha.go +++ b/misc/alpha/alpha.go @@ -19,7 +19,7 @@ const ( type alpha struct { ice.Zone - field string `data:"word,translation,definition"` + field string `data:"word,phonetic,translation,definition"` store string `data:"usr/local/export/"` fsize string `data:"300000"` limit string `data:"50000"`