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