cyzhao před 1 rokem
rodič
revize
ab633faf25

+ 13 - 2
Gameserver/App/model/User/Info_Gates.php

@@ -56,6 +56,18 @@ class Info_Gates extends Object_ext {
      * @var int
      */
     public $xunluo_quick_buyRecord = 0;
+    
+    /**
+     * 进化左边解锁最大值得记录
+     * @var type
+     */
+    public $evolveMaxId_left = 0;
+    
+    /**
+     * 进化右边解锁最大值得记录
+     * @var type
+     */
+    public $evolveMaxId_right = 0;
 
     public function initialize() {
         $startId = 10010121;
@@ -85,8 +97,7 @@ class Info_Gates extends Object_ext {
             }
 
             $this->GatesChallengeRecord = new \stdClass();
-            $this->evolveUnlockRecord = array();
-
+          
             $this->xunluo_StartTs = now();
         } else {
             parent::__construct($arg);

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

@@ -247,6 +247,8 @@ class FightProc {
 
             my_Assert(ctx()->baseInfo->gold >= $mo->needGold_unlock, ErrCode::notenough_gold_msg);
             ctx()->baseInfo->Consume_Gold($mo->needGold_unlock);
+            ctx()->gates->evolveMaxId_left = $id;
+            
         } else {
             $dic = GameConfig::evolve();
             foreach ($dic as $key => $value) {
@@ -262,11 +264,11 @@ class FightProc {
                 $costNum = $cost[1];
                 my_Assert(StlUtil::dictHasProperty(ctx()->store->items, $costId) && ctx()->store->items->$costId >= $costNum, ErrCode::notenough_item);
             }
+            ctx()->gates->evolveMaxId_right = $id;
 //             my_Assert(ctx()->baseInfo->gold>=$mo->needGold_unlock, ErrCode::notenough_gold_msg);
         }
 
-        ctx()->gates->evolveUnlockRecord[] = $id;
-
+     
         UserProc::updateUserInfo();
         $ret = array(
             'store' => ctx()->store,