cyzhao 1 рік тому
батько
коміт
ce5553569e

+ 1 - 0
Gameserver/App/model/User/Info_Gates.php

@@ -112,6 +112,7 @@ class Info_Gates extends Object_ext {
 
 
             $this->xunluo_StartTs = now();
             $this->xunluo_StartTs = now();
             $this->TowerGate = new Ins_TowerGateInfo();
             $this->TowerGate = new Ins_TowerGateInfo();
+            $this->TowerGate->CurLayer = 1;//默认从1层开始
         } else {
         } else {
             parent::__construct($arg);
             parent::__construct($arg);
         }
         }

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

@@ -500,8 +500,9 @@ class FightProc {
         }
         }
 
 
         if ($tag) {
         if ($tag) {
-            StoreProc::AddMultiItemInStore($prize);
+            my_Assert($mask > $gateInfo->FirstReward, ErrCode::user_Gate_GatePriceHasReceive);
             $gateInfo->FirstReward = $mask;
             $gateInfo->FirstReward = $mask;
+            StoreProc::AddMultiItemInStore($prize);           
         }
         }
         ctx()->gates->GateList->$gateId = $gateInfo;
         ctx()->gates->GateList->$gateId = $gateInfo;