1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00

add can.dir

This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-12-24 12:23:12 +08:00
parent bdb7177091
commit 7bdc1bc380
2 changed files with 4 additions and 1 deletions

View File

@ -41,6 +41,9 @@ func init() {
m.Echo(get(m, "place/v1/explore", m.OptionSimple("keyword,boundary,page_index")))
}},
SEARCH: {Help: "搜索", Hand: func(m *ice.Message, arg ...string) {
if m.Option("keyword") == "" {
return
}
m.Echo(get(m, "place/v1/search", m.OptionSimple("keyword,boundary,page_index")))
}},
DIRECTION: {Help: "导航", Hand: func(m *ice.Message, arg ...string) {

View File

@ -55,7 +55,7 @@ func _xterm_get(m *ice.Message, h string) xterm.XTerm {
}
func _xterm_echo(m *ice.Message, h string, str string) {
m.Options(ice.MSG_DAEMON, mdb.HashSelectField(m, h, cli.DAEMON), ice.MSG_COUNT, "0", "__target", "")
m.Options(ice.LOG_DISABLE, ice.TRUE)
// m.Options(ice.LOG_DISABLE, ice.TRUE)
web.PushNoticeGrow(m, h, str)
}
func _xterm_cmds(m *ice.Message, h string, cmd string, arg ...ice.Any) {