1
0
mirror of https://shylinux.com/x/icebergs synced 2025-06-27 18:52:58 +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
}
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) {
return 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 {
if strings.Contains(dir, "bi ") {
return dir
}
if dir == "" || kit.HasPrefix(dir, HTTP) {
return dir
}

View File

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