王刚 1 年之前
父节点
当前提交
1f98bc58e5
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 7 1
      Gameserver/App/model/User/Info_Gates.php
  2. 1 1
      Gameserver/App/model/User/Ins_GateInfo.php

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

@@ -122,11 +122,17 @@ class Info_Gates extends Object_ext {
             $this->TowerGate->skill_zhudong = new \stdClass();
             $this->TowerGate->skill_zhudong_lockState = new \stdClass();
             $this->TowerGate->skill_beidong_lockState = new \stdClass();
-            $this->TowerGate->CurLayer = 1; //默认从1层开始
+            $this->TowerGate->CurLayer = 1;                                     // 默认从1层开始
         } else {
             parent::__construct($arg);
 
             $this->TowerGateInfo()->fixArray();
+            if (null != $this->GateList) {
+                foreach ($this->GateList as $id => &$gt) {
+                    $gt = new Ins_GateInfo($gt);
+                    $gt->fixArray();
+                }
+            }
         }
     }
 

+ 1 - 1
Gameserver/App/model/User/Ins_GateInfo.php

@@ -13,7 +13,7 @@ namespace loyalsoft;
  *
  * @author c'y'zhao
  */
-class Ins_GateInfo {
+class Ins_GateInfo extends Object_ext {
 
     public $GateId = 0;