王刚 1 gadu atpakaļ
vecāks
revīzija
c89de40b38
1 mainītis faili ar 22 papildinājumiem un 22 dzēšanām
  1. 22 22
      Gameserver/App/model/User/Info_Gates.php

+ 22 - 22
Gameserver/App/model/User/Info_Gates.php

@@ -14,58 +14,58 @@ namespace loyalsoft;
  * @author c'y'zhao
  */
 class Info_Gates extends Object_ext {
+
     /**
      * 当前剧情选择的关卡
      */
     public $CurrentGateId = 0;
+
     /**
      * 已解锁剧情关卡的最大id
      * @var type
      */
-    public $UnlockedGatesMaxId = 0; 
+    public $UnlockedGatesMaxId = 0;
+
     /**
      * 章节列表
      * @var Ins_GateInfo
      */
     public $GateList = null;
-    
+
     /**
-     * 
+     *
      * @var type
      */
     public $GatesChallengeRecord = null;
-    
-    public function initialize() {       
-        $startId= 1;
+
+    public function initialize() {
+        $startId = 1;
         $this->CurrentGateId = $startId;
         $this->UnlockedGatesMaxId = $startId;
-            
-        $this->GateList = new \stdClass();    
+
+        $this->GateList = new \stdClass();
         $Ins_GateInfo = new Ins_GateInfo();
         $Ins_GateInfo->GateId = $this->CurrentGateId;
-        $this->GateList->$startId=$Ins_GateInfo;     
-        
+        $this->GateList->$startId = $Ins_GateInfo;
+
         $this->GatesChallengeRecord = new \stdClass();
     }
-    
+
     public function __construct($arg = null) {
-        if($tag == null){            
-            if($this->CurrentGateId == 0){
-                $startId= 1;
+        if ($arg == null) {
+            if ($this->CurrentGateId == 0) {
+                $startId = 1;
                 $this->CurrentGateId = $startId;
                 $this->UnlockedGatesMaxId = $startId;
-            
-                $this->GateList = new \stdClass();    
+
+                $this->GateList = new \stdClass();
                 $Ins_GateInfo = new Ins_GateInfo();
                 $Ins_GateInfo->GateId = $this->CurrentGateId;
-                $this->GateList->$startId=$Ins_GateInfo;        
-                
-                
+                $this->GateList->$startId = $Ins_GateInfo;
             }
-            
+
             $this->GatesChallengeRecord = new \stdClass();
-            
-        }else{			
+        } else {
             parent::__construct($arg);
         }
     }