From dd920ee22ce425c497639e91d6573a57e3075f72 Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 17 Mar 2022 21:10:52 +0800 Subject: [PATCH] opt some --- core/chat/pod.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/chat/pod.go b/core/chat/pod.go index e2a6d59a..7f095641 100644 --- a/core/chat/pod.go +++ b/core/chat/pod.go @@ -24,6 +24,12 @@ func init() { return // ่Š‚็‚นๅˆ—่กจ } if len(arg) == 1 { + if m.IsCliUA() { + m.Option(ice.MSG_USERNAME, "root") + m.Option(ice.MSG_USERROLE, "tech") + m.Cmdy(web.SHARE_LOCAL, "bin/ice.bin") + return + } if s := m.Cmdx(web.SPACE, arg[0], "web.chat.website", "show", "index.iml", "Header", "", "River", "", "Action", "", "Footer", ""); s != "" { m.RenderResult(s) } else {