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) 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 {