瀏覽代碼

bug修复

cyzhao 1 年之前
父節點
當前提交
fa81282a2f
共有 1 個文件被更改,包括 5 次插入3 次删除
  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,