上传武官柱子解锁优化
This commit is contained in:
parent
4f4acd6304
commit
a60bbac8f4
@ -211,18 +211,22 @@ func (this *Practice) OpenCmdNotice(uid string, keys ...string) {
|
|||||||
)
|
)
|
||||||
if !this.IsCross() {
|
if !this.IsCross() {
|
||||||
for _, v := range keys {
|
for _, v := range keys {
|
||||||
err := this.service.AcrossClusterRpcCall(context.Background(), this.GetCrossTag(),
|
if v == "practice_ pillar1" || v == "practice_ pillar2" || v == "practice_ pillar3" {
|
||||||
comm.Service_Worker, string(comm.RPC_ModulePracticeUnLockPillar),
|
err := this.service.AcrossClusterRpcCall(context.Background(), this.GetCrossTag(),
|
||||||
&pb.RPCGeneralReqA2{Param1: uid, Param2: v}, &pb.EmptyResp{})
|
comm.Service_Worker, string(comm.RPC_ModulePracticeUnLockPillar),
|
||||||
if err != nil {
|
&pb.RPCGeneralReqA2{Param1: uid, Param2: v}, &pb.EmptyResp{})
|
||||||
this.Errorln(err)
|
if err != nil {
|
||||||
return
|
this.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
for _, v := range keys {
|
for _, v := range keys {
|
||||||
this.RPC_ModulePracticeUnLockPillar(context.Background(), &pb.RPCGeneralReqA2{Param1: uid, Param2: v}, &pb.EmptyResp{})
|
if v == "practice_ pillar1" || v == "practice_ pillar2" || v == "practice_ pillar3" {
|
||||||
|
this.RPC_ModulePracticeUnLockPillar(context.Background(), &pb.RPCGeneralReqA2{Param1: uid, Param2: v}, &pb.EmptyResp{})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -383,7 +387,10 @@ func (this *Practice) RPC_ModulePracticeUnLockPillar(ctx context.Context, args *
|
|||||||
})
|
})
|
||||||
this.atlas.CheckActivatePandaAtlasCollect(args.Param1, "100001")
|
this.atlas.CheckActivatePandaAtlasCollect(args.Param1, "100001")
|
||||||
break
|
break
|
||||||
|
default:
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
_session, _ := this.GetUserSession(args.Param1)
|
_session, _ := this.GetUserSession(args.Param1)
|
||||||
go this.ModuleBuried.TriggerBuried(_session, comm.GetBuriedParam(comm.Rtype152, 1))
|
go this.ModuleBuried.TriggerBuried(_session, comm.GetBuriedParam(comm.Rtype152, 1))
|
||||||
return
|
return
|
||||||
|
@ -33,7 +33,9 @@ func (this *ModelSession) Start() (err error) {
|
|||||||
|
|
||||||
// 获取用户
|
// 获取用户
|
||||||
func (this *ModelSession) getUserSession(uid string) (user *pb.CacheUser) {
|
func (this *ModelSession) getUserSession(uid string) (user *pb.CacheUser) {
|
||||||
user = &pb.CacheUser{}
|
user = &pb.CacheUser{
|
||||||
|
Uid: uid,
|
||||||
|
}
|
||||||
if err := this.GetListObj(comm.RDS_EMPTY, uid, user); err != nil {
|
if err := this.GetListObj(comm.RDS_EMPTY, uid, user); err != nil {
|
||||||
if err != mongo.ErrNoDocuments {
|
if err != mongo.ErrNoDocuments {
|
||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user