Ver Fonte

bug修复

cyzhao há 1 ano atrás
pai
commit
fa81282a2f
1 ficheiros alterados com 5 adições e 3 exclusões
  1. 5 3
      Gameserver/App/process/FightProc.php

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

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