cyzhao vor 1 Jahr
Ursprung
Commit
fa81282a2f
1 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. 5 3
      Gameserver/App/process/FightProc.php

+ 5 - 3
Gameserver/App/process/FightProc.php

@@ -65,6 +65,9 @@ class FightProc {
         }
         
         if($resultType){
+            if(ctx()->gates->GateList->$gateId->pass == 0){
+                ctx()->gates->GateList->$gateId->pass = 1;
+            }
             StoreProc::AddMultiItemInStore($gateMo->reward_win);                      
             $newGateId = $gateId+1;
             if(!StlUtil::dictHasProperty(ctx()->gates->GateList, $newGateId)){
@@ -74,7 +77,7 @@ class FightProc {
                 $gate->GateId = $newGateId;
                 ctx()->gates->GateList->$newGateId = $gate;
             }
-               
+                                  
         } else {
             StoreProc::AddMultiItemInStore($gateMo->reward_fail);
         }
@@ -82,8 +85,7 @@ class FightProc {
         ctx()->baseInfo->Add_Gold($gold);
         ctx()->baseInfo->Add_Exp($exp);
         
-        
-        
+               
         UserProc::updateUserInfo();
         $ret = array(          
             'gates' => ctx()->gates,