From 6437fc6c0571e31df466bd1728ca5a087da67501 Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 13 Dec 2023 13:27:59 +0800 Subject: [PATCH] add some --- base/web/space.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/base/web/space.go b/base/web/space.go index 0f1961f1..b1afc230 100644 --- a/base/web/space.go +++ b/base/web/space.go @@ -225,10 +225,8 @@ func init() { if ls := kit.Simple(m.Optionv(ice.MSG_UPLOAD)); len(ls) > 1 { m.Cmd(SPACE, pod, SPIDE, ice.DEV, CACHE, SHARE_CACHE+ls[0]) } - m.Options(key, []string{}, ice.MSG_USERPOD, pod).Cmdy(append(kit.List(ice.SPACE, pod), arg...)...) - if m.IsErr() { - m.Warn(m.IsErr(), kit.Select("", m.Resultv(), 1), kit.Slice(m.Resultv(), 2)) - } + msg := m.Options(key, []string{}, ice.MSG_USERPOD, pod).Cmd(append(kit.List(ice.SPACE, pod), arg...)...) + kit.If(!msg.IsErr(), func() { m.Copy(msg) }) return true } }