From c100727a952bb187c1071af9a6680b36516849f8 Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 13 Dec 2023 00:00:27 +0800 Subject: [PATCH] add some --- base/web/dream.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/web/dream.go b/base/web/dream.go index 175b4ac3..aa4cef60 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -283,7 +283,13 @@ func init() { if len(arg) == 0 { _dream_list(m).RewriteAppend(func(value, key string, index int) string { if key == mdb.ICON { - return kit.MergeURL(ctx.FileURI(value), ice.POD, m.Appendv(mdb.NAME)[index]) + if kit.HasPrefix(value, HTTP, nfs.PS) { + return value + } + if nfs.ExistsFile(m, path.Join(ice.USR_LOCAL_WORK, m.Appendv(mdb.NAME)[index], value)) { + return kit.MergeURL(ctx.FileURI(value), ice.POD, m.Appendv(mdb.NAME)[index]) + } + return kit.MergeURL(ctx.FileURI(nfs.USR_ICONS_ICEBERGS)) } return value }).Option(ice.MSG_ACTION, "")