Browse Source

bug修复

cyzhao 1 year ago
parent
commit
ce5553569e
2 changed files with 3 additions and 1 deletions
  1. 1 0
      Gameserver/App/model/User/Info_Gates.php
  2. 2 1
      Gameserver/App/process/FightProc.php

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

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

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

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