From be66627287b644d959e66b54d91e0241499b7258 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Feb 2025 10:52:06 +0800 Subject: [PATCH] add some --- base/web/dream.go | 3 ++- base/web/spide.go | 5 ++--- core/wiki/geoarea.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base/web/dream.go b/base/web/dream.go index 9ce869fa..25f34700 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -343,7 +343,8 @@ func init() { return true } }) - kit.If(m.Option(mdb.NAME) == "", func() { m.Sleep("5s").Cmdy(ROUTE, cli.BUILD).ProcessInner() }) + m.Sleep("3s") + // kit.If(m.Option(mdb.NAME) == "", func() { m.Sleep("5s").Cmdy(ROUTE, cli.BUILD).ProcessInner() }) }}, PUBLISH: {Name: "publish name", Hand: func(m *ice.Message, arg ...string) { m.Option(ice.MSG_TITLE, kit.Keys(m.Option(ice.MSG_USERPOD0), m.Option(ice.MSG_USERPOD), m.CommandKey(), m.ActionKey())) diff --git a/base/web/spide.go b/base/web/spide.go index edb9d407..604dda6d 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -357,11 +357,10 @@ func init() { } }}, mdb.CREATE: {Name: "create origin* name icons type token", Hand: func(m *ice.Message, arg ...string) { - if m.Option(mdb.NAME) == "" || m.Option(mdb.ICONS) == "" { + if m.Option(mdb.TYPE) == nfs.REPOS && (m.Option(mdb.NAME) == "" || m.Option(mdb.ICONS) == "") { msg := m.Spawn().SplitIndex(m.Cmdx(SPIDE, ice.DEV, kit.MergeURL2(m.Option(ORIGIN), C(SPACE, ice.INFO)))) if m.OptionDefault(mdb.NAME, msg.Append(mdb.NAME)); msg.Append(mdb.ICONS) != "" { m.OptionDefault(mdb.ICONS, m.Resource(msg.Append(mdb.ICONS), msg.Append(ORIGIN))) - m.OptionDefault(mdb.TYPE, nfs.REPOS) } } if u, e := url.Parse(m.Option(ORIGIN)); m.WarnNotValid(e != nil || u.Host == "", m.Option(ORIGIN)) { @@ -522,7 +521,7 @@ func HostPort(m *ice.Message, host, port string, arg ...string) string { host = u.Hostname() } }) - host = kit.Select("localhost", host) + host = kit.Select("localhost", host) if port == tcp.PORT_443 { return kit.Format("https://%s", host) + p } else if port == tcp.PORT_80 { diff --git a/core/wiki/geoarea.go b/core/wiki/geoarea.go index cbe1d239..6fad2e7b 100644 --- a/core/wiki/geoarea.go +++ b/core/wiki/geoarea.go @@ -21,7 +21,7 @@ func init() { Index.MergeCommands(ice.Commands{ GEOAREA: {Name: "geoarea path auto", Help: "地区", Actions: ice.Actions{ ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { - m.Cmd(web.SPIDE, mdb.CREATE, "https://geo.datav.aliyun.com/areas_v3/bound/", GEOAREA) + // m.Cmd(web.SPIDE, mdb.CREATE, "https://geo.datav.aliyun.com/areas_v3/bound/", GEOAREA) }}, nfs.PS: {Hand: func(m *ice.Message, arg ...string) { p := path.Join(ice.USR_GEOAREA, path.Join(arg...))