add log
This commit is contained in:
parent
8dd45984bb
commit
9c3689c51c
@ -246,7 +246,7 @@ func (this *User) CrossUserSession(uid string) *pb.CacheUser {
|
|||||||
|
|
||||||
// 跨服创建玩家公会 date 3.10
|
// 跨服创建玩家公会 date 3.10
|
||||||
func (this *User) CrossCreateSociaty(uid, sociatyName string) *pb.DBSociaty {
|
func (this *User) CrossCreateSociaty(uid, sociatyName string) *pb.DBSociaty {
|
||||||
sociaty:= &pb.DBSociaty{}
|
sociaty := &pb.DBSociaty{}
|
||||||
this.service.AcrossClusterRpcCall(context.Background(), this.GetCrossTag(),
|
this.service.AcrossClusterRpcCall(context.Background(), this.GetCrossTag(),
|
||||||
comm.Service_Worker, Rpc_CreateSociaty, &pb.RPCGeneralReqA2{Param1: uid, Param2: sociatyName}, sociaty)
|
comm.Service_Worker, Rpc_CreateSociaty, &pb.RPCGeneralReqA2{Param1: uid, Param2: sociatyName}, sociaty)
|
||||||
return sociaty
|
return sociaty
|
||||||
@ -260,7 +260,7 @@ func (this *User) RpcCreateSociaty(ctx context.Context, req *pb.RPCGeneralReqA2,
|
|||||||
}
|
}
|
||||||
model := db.NewDBModel(comm.TableSociaty, 0, conn)
|
model := db.NewDBModel(comm.TableSociaty, 0, conn)
|
||||||
|
|
||||||
sociaty:= &pb.DBSociaty{}
|
sociaty := &pb.DBSociaty{}
|
||||||
_id := primitive.NewObjectID().Hex()
|
_id := primitive.NewObjectID().Hex()
|
||||||
sociaty.Creater = req.Param1
|
sociaty.Creater = req.Param1
|
||||||
sociaty.Name = req.Param2
|
sociaty.Name = req.Param2
|
||||||
@ -603,7 +603,7 @@ func (this *User) ChangeUserExpand(uid string, value map[string]interface{}) err
|
|||||||
func (this *User) getUserFromRemoteDb(uid string, rsp *pb.DBUser) error {
|
func (this *User) getUserFromRemoteDb(uid string, rsp *pb.DBUser) error {
|
||||||
sid, _, ok := utils.UIdSplit(uid)
|
sid, _, ok := utils.UIdSplit(uid)
|
||||||
if !ok {
|
if !ok {
|
||||||
return errors.New("sid split error")
|
return fmt.Errorf("sid split err,uid: %v", uid)
|
||||||
}
|
}
|
||||||
conn, err := db.ServerDBConn(sid)
|
conn, err := db.ServerDBConn(sid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user