From e0dc333601aa2f8acc852acc9a4de9f8de71b359 Mon Sep 17 00:00:00 2001 From: shaoying Date: Tue, 11 Aug 2020 08:32:42 +0800 Subject: [PATCH] opt some --- base/aaa/sess.go | 6 +++--- core/code/pack.go | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/base/aaa/sess.go b/base/aaa/sess.go index c06a41e5..467d3150 100644 --- a/base/aaa/sess.go +++ b/base/aaa/sess.go @@ -1,9 +1,9 @@ package aaa import ( - "github.com/shylinux/icebergs" + ice "github.com/shylinux/icebergs" "github.com/shylinux/icebergs/base/mdb" - "github.com/shylinux/toolkits" + kit "github.com/shylinux/toolkits" ) func _sess_list(m *ice.Message) { @@ -36,9 +36,9 @@ func _sess_check(m *ice.Message, sessid string) { } }) m.Log_AUTH( + USERNICK, m.Option(ice.MSG_USERNICK, value[USERNICK]), USERNAME, m.Option(ice.MSG_USERNAME, value[USERNAME]), USERROLE, m.Option(ice.MSG_USERROLE, kit.Select(UserRole(m, value[USERNAME]))), - USERNICK, m.Option(ice.MSG_USERROLE), ) }) } diff --git a/core/code/pack.go b/core/code/pack.go index 46547d0d..3a613798 100644 --- a/core/code/pack.go +++ b/core/code/pack.go @@ -152,8 +152,7 @@ func init() { } js.WriteString(`_can_name = ""` + "\n") - if f, p, e := kit.Create("usr/volcanos/cache.html"); m.Assert(e) { - m.Debug("%v ", p) + if f, _, e := kit.Create("usr/volcanos/cache.html"); m.Assert(e) { f.WriteString(fmt.Sprintf(`