1
0
mirror of https://shylinux.com/x/icebergs synced 2025-06-28 03:02:59 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-06-26 22:35:01 +08:00
parent a9ebeed451
commit 941e97f98b
3 changed files with 9 additions and 0 deletions

View File

@ -217,6 +217,9 @@ func ShortCmd(key string) string {
return key return key
} }
func ResourceFile(m *ice.Message, file string, arg ...string) string { func ResourceFile(m *ice.Message, file string, arg ...string) string {
if strings.Contains(file, "bi ") {
return file
}
if kit.HasPrefix(file, nfs.PS, ice.HTTP) { if kit.HasPrefix(file, nfs.PS, ice.HTTP) {
return file return file
} else if nfs.Exists(m, file) { } else if nfs.Exists(m, file) {

View File

@ -308,6 +308,9 @@ func Module(prefix string, arg ...Any) {
} }
} }
func (m *Message) FileURI(dir string) string { func (m *Message) FileURI(dir string) string {
if strings.Contains(dir, "bi ") {
return dir
}
if dir == "" || kit.HasPrefix(dir, HTTP) { if dir == "" || kit.HasPrefix(dir, HTTP) {
return dir return dir
} }

View File

@ -268,6 +268,9 @@ func (m *Message) DisplayCSS(file string, arg ...Any) *Message {
return m return m
} }
func (m *Message) Resource(file string, arg ...string) string { func (m *Message) Resource(file string, arg ...string) string {
if strings.Contains(file, "bi ") {
return file
}
if len(arg) > 0 && arg[0] != "" { if len(arg) > 0 && arg[0] != "" {
if strings.HasPrefix(file, HTTP) { if strings.HasPrefix(file, HTTP) {
return file return file