From 4182cc08ae100a52ad9cae97f7e508158f9bb44c Mon Sep 17 00:00:00 2001 From: "LinsRuis.HW1" Date: Sat, 8 Mar 2025 15:42:37 +0800 Subject: [PATCH] + --- webs/sys/routehb/user.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webs/sys/routehb/user.go b/webs/sys/routehb/user.go index 0e93a81..0173998 100644 --- a/webs/sys/routehb/user.go +++ b/webs/sys/routehb/user.go @@ -9,13 +9,14 @@ import ( "GoClouds/service" "GoClouds/service/userService" "fmt" + "strings" + "time" + hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol" gocloud "github.com/mgr9525/go-cloud" ruisUtil "github.com/mgr9525/go-ruisutil" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson/primitive" - "strings" - "time" ) type UserRPC struct{} @@ -101,6 +102,7 @@ func (UserRPC) Login(c *hbtp.Context, m *sysBean.LoginReq) { ret.Xid = usr.Xid ret.Name = usr.Name ret.SetHash(usr.Pass) + gocloud.CacheSets(fmt.Sprintf("uinfo:%s", usr.Xid), nil) c.ResJson(hbtp.ResStatusOk, ret) } func (UserRPC) Reg(c *hbtp.Context, m *sysBean.RegReq) {