From 93972c5b6c23be1777cd8bf47c5f33ef2cc5e3f0 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Sun, 8 Oct 2023 15:11:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/usersession.go | 2 +- modules/user/model_user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comm/usersession.go b/comm/usersession.go index 93c22aa6b..f22d9eef6 100644 --- a/comm/usersession.go +++ b/comm/usersession.go @@ -126,7 +126,7 @@ func (this *UserSession) SendMsg(mainType, subType string, msg proto.Message) (e // 关闭用户连接对象 func (this *UserSession) Close() (err error) { reply := &pb.RPCMessageReply{} - if err := this.service.RpcCall(context.Background(), fmt.Sprintf("%s/%s", Service_Gateway, this.GatewayServiceId), string(Rpc_GatewayAgentClose), &pb.AgentCloseeReq{ + if err = this.service.RpcCall(context.Background(), fmt.Sprintf("%s/%s", Service_Gateway, this.GatewayServiceId), string(Rpc_GatewayAgentClose), &pb.AgentCloseeReq{ UserSessionId: this.SessionId, }, reply); err != nil { log.Errorf("Close UserSession:%s UserId:%s err:%v", this.SessionId, this.UserId, err) diff --git a/modules/user/model_user.go b/modules/user/model_user.go index 7c9d9d93e..eaa217134 100644 --- a/modules/user/model_user.go +++ b/modules/user/model_user.go @@ -81,7 +81,7 @@ func (this *ModelUser) User_Create(user *pb.DBUser) (err error) { user.Ctime = now user.Logintime = now if _, err = this.DB.InsertOne(comm.TableUser, user); err != nil { - this.module.Errorln("创建用户", log.Field{Key: "sid", Value: user.Sid}, log.Field{Key: "account", Value: user.Binduid}, log.Field{Key: "err", Value: err.Error()}) + this.module.Error("创建用户", log.Field{Key: "sid", Value: user.Sid}, log.Field{Key: "account", Value: user.Binduid}, log.Field{Key: "err", Value: err.Error()}) return } key := fmt.Sprintf("%s:%s", this.TableName, user.Uid) From a2fad05df70f9eae55c2243a5e68d222df95215a Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Sun, 8 Oct 2023 15:33:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=AD=98=E9=92=B1?= =?UTF-8?q?=E7=BD=90=E6=95=B0=E6=8D=AE=E8=A2=AB=E6=B8=85=E7=90=86=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/module.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/user/module.go b/modules/user/module.go index e454ca3c6..e1bd7cbca 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -438,6 +438,7 @@ func (this *User) change(session comm.IUserSession, attrs map[string]int32) (atn Merchantmoney: user.Merchantmoney, Integral: user.Integral, Profit: user.Profit, + Deposit: user.Deposit, } atno = make([]*pb.UserAtno, 0, len(attrs)) for attr, add := range attrs {