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) {