|
@@ -67,12 +67,14 @@ class FightProc {
|
|
* 6819 主线挑战 -- 通关
|
|
* 6819 主线挑战 -- 通关
|
|
*/
|
|
*/
|
|
static function MainTZPass() {
|
|
static function MainTZPass() {
|
|
- list($gateId, $index) = req()->paras; # 关卡id, 通关难度索引(1/2/3)
|
|
|
|
|
|
+ list($gateId, $index, $killMonsterNum, $killBossNum) = req()->paras; # 关卡id, 通关难度索引(1/2/3)
|
|
my_Assert(ctx()->gates()->maxPassGateId >= $gateId, ErrCode::gate_GateNoUnlock); # 通关后解锁难度1
|
|
my_Assert(ctx()->gates()->maxPassGateId >= $gateId, ErrCode::gate_GateNoUnlock); # 通关后解锁难度1
|
|
// isEditor() && $gateInfo = new Ins_GateInfo();
|
|
// isEditor() && $gateInfo = new Ins_GateInfo();
|
|
$gateInfo = ctx()->gates()->GateList->$gateId;
|
|
$gateInfo = ctx()->gates()->GateList->$gateId;
|
|
my_Assert($gateInfo->tz_state + 1 >= $index, ErrCode::gate_GateNoUnlock); # 通关上一难度解锁当前难度
|
|
my_Assert($gateInfo->tz_state + 1 >= $index, ErrCode::gate_GateNoUnlock); # 通关上一难度解锁当前难度
|
|
$gateInfo->tz_state = $index;
|
|
$gateInfo->tz_state = $index;
|
|
|
|
+ TaskProc::OnKillCommonNumMonster($killMonsterNum);
|
|
|
|
+ TaskProc::OnKillleaderNumMonster($killBossNum);
|
|
UserProc::updateUserInfo();
|
|
UserProc::updateUserInfo();
|
|
return Resp::ok();
|
|
return Resp::ok();
|
|
}
|
|
}
|