This commit is contained in:
wh_zcy 2023-03-31 20:25:29 +08:00
commit 3d728805d1
3 changed files with 113 additions and 106 deletions

View File

@ -101,14 +101,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -215,14 +215,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -329,14 +329,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43902", "t": "13002",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43902", "t": "13002",
"n": 1 "n": 1
} }
] ]
@ -443,14 +443,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -462,14 +462,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -481,14 +481,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -500,14 +500,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -519,14 +519,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -538,14 +538,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -557,14 +557,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -576,14 +576,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -690,14 +690,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -804,14 +804,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -918,14 +918,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43902", "t": "13002",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43902", "t": "13002",
"n": 1 "n": 1
} }
] ]
@ -1032,14 +1032,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1051,14 +1051,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1070,14 +1070,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1089,14 +1089,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1108,14 +1108,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1127,14 +1127,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1146,14 +1146,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1165,14 +1165,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1279,14 +1279,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1393,14 +1393,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43901", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1506,16 +1506,16 @@
"group": 3, "group": 3,
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "attr",
"t": "43902", "t": "gold",
"n": 1 "n": 12000
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "attr",
"t": "43902", "t": "gold",
"n": 1 "n": 12000
} }
] ]
}, },
@ -1621,14 +1621,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1659,14 +1659,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1678,14 +1678,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1697,14 +1697,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1716,14 +1716,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1735,14 +1735,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]
@ -1754,14 +1754,14 @@
"loopgift": [ "loopgift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
], ],
"gamegift": [ "gamegift": [
{ {
"a": "hero", "a": "hero",
"t": "43903", "t": "25001",
"n": 1 "n": 1
} }
] ]

View File

@ -178,19 +178,22 @@ func (this *apiComp) Expulsion(session comm.IUserSession, req *pb.PracticeExpuls
} }
} }
defer func() { defer func() {
if ok { //在线直接推送消息
this.module.PutUserSession(_session) this.module.PutUserSession(_session)
}
}() }()
if _session, ok = this.module.GetUserSession(pillar.Uid); ok { _session, ok = this.module.GetUserSession(pillar.Uid)
if _, code = this.module.ModuleHero.AddHeroExp(_session, pillar.Hero, exp); code != pb.ErrorCode_Success { // if _session, ok = this.module.GetUserSession(pillar.Uid); ok {
return // if _, code = this.module.ModuleHero.AddHeroExp(_session, pillar.Hero, exp); code != pb.ErrorCode_Success {
} // return
if code = this.module.DispenseRes(_session, append(ants1, ants2...), true); code != pb.ErrorCode_Success { // }
return // if code = this.module.DispenseRes(_session, append(ants1, ants2...), true); code != pb.ErrorCode_Success {
} // return
if code = this.module.ModuleHero.KungFuHero(_session, pillar.Hero, false, ""); code != pb.ErrorCode_Success { // }
return // if code = this.module.ModuleHero.KungFuHero(_session, pillar.Hero, false, ""); code != pb.ErrorCode_Success {
} // return
} else { // }
// } else {
if _, code = this.module.ModuleHero.AddHeroExp(_session, pillar.Hero, exp); code != pb.ErrorCode_Success { if _, code = this.module.ModuleHero.AddHeroExp(_session, pillar.Hero, exp); code != pb.ErrorCode_Success {
return return
} }
@ -217,7 +220,7 @@ func (this *apiComp) Expulsion(session comm.IUserSession, req *pb.PracticeExpuls
CreateTime: uint64(configure.Now().Unix()), CreateTime: uint64(configure.Now().Unix()),
Items: res, Items: res,
}, pillar.Uid) }, pillar.Uid)
} // }
froom.Knapsack[pillar.Teacher] = 0 froom.Knapsack[pillar.Teacher] = 0
froom.Knapsack[pillar.Prop] = 0 froom.Knapsack[pillar.Prop] = 0

View File

@ -234,6 +234,8 @@ func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) {
keep = false keep = false
for _, v := range buleroom.Statuers { for _, v := range buleroom.Statuers {
if v.Uid == red { if v.Uid == red {
v.Unionname = redsociaty
v.Figure = reduser.Figure
v.End = configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix() v.End = configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix()
keep = true keep = true
break break
@ -260,6 +262,8 @@ func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) {
keep = false keep = false
for _, v := range redroom.Statuers { for _, v := range redroom.Statuers {
if v.Uid == bule { if v.Uid == bule {
v.Unionname = bulesociaty
v.Figure = buleuser.Figure
v.End = configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix() v.End = configure.Now().Add(time.Minute * time.Duration(this.configure.GetGlobalConf().PandamasTiguandiaoxiangCd)).Unix()
keep = true keep = true
break break