瀏覽代碼

章节解锁

cyzhao 1 周之前
父節點
當前提交
7524e8c90a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Gameserver/App/process/FightProc.php

+ 2 - 2
Gameserver/App/process/FightProc.php

@@ -765,7 +765,7 @@ class FightProc {
         if ($curTs >= $ts) {
             $gateInfo->MaxSeconds = $curTs;
         }
-        $gatePassTag_old = ctx()->gates->GateList->gateId->pass;
+        $gatePassTag_old = ctx()->gates->GateList->$gateId->pass;
         self::funUnlock_Gate($resultType, $gateId); //备注:这个接口的位置不能动 里面有关卡第一次胜利解锁的功能提示校验
         //self::subFunUnlock($resultType, $gateId);
         if ($resultType) {                                                      # 胜利
@@ -893,7 +893,7 @@ class FightProc {
         if ($gateId != 11000) {
             $newChapterId = 0;
             $oldChapterId = 0;
-            $gatePassTag_new = ctx()->gates->GateList->gateId->pass;
+            $gatePassTag_new = ctx()->gates->GateList->$gateId->pass;
             if ($gatePassTag_old == 0 && $gatePassTag_new == 1) {              
                 $gate_chapter = GameConfig::gate_chapter();
                 foreach ($gate_chapter as $id => $gate_chapter_mo) {