王刚 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;