From 5a4b79b4ebfb8b6d8a3ac129c58303e5ce4d8a7a Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 5 Aug 2024 02:10:09 +0800 Subject: [PATCH] add some --- base/web/spide.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base/web/spide.go b/base/web/spide.go index 81159521..e3378fe1 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -426,9 +426,11 @@ func init() { return p + kit.Select("", nfs.PS, len(arg) == 0) } else { p := m.FileURI(ctx.GetCmdFile(m, m.PrefixKey())) - if p := kit.TrimPrefix(path.Join(path.Dir(p), path.Join(arg...)), nfs.P, nfs.REQUIRE); nfs.Exists(m, p) { - return p + m.Info("what %v", p) + if pp := kit.TrimPrefix(path.Join(path.Dir(p), path.Join(arg...)), nfs.P, nfs.REQUIRE); nfs.Exists(m, pp) { + return pp } + m.Info("what %v", ice.Info.Important) if ice.Info.Important { return kit.MergeURL2(SpideOrigin(m, ice.OPS)+p, path.Join(arg...)) }