Parcourir la source

区域list接口处理

cyzhao il y a 1 semaine
Parent
commit
d092a5470a
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. 14 0
      Gameserver/App/model/User/Data_UserGame.php

+ 14 - 0
Gameserver/App/model/User/Data_UserGame.php

@@ -91,6 +91,20 @@ class Data_UserGame extends HashSaver {
             $this->heros()->fixArray();
             $this->task()->fixArray();
             $this->store()->fixArray();
+            //$this->
+
+            $exploreAreas = $this->store()->exploreArea;
+            if ($exploreAreas != null) {
+                $dic = new \stdClass();
+                foreach ($this->store()->exploreArea as $areaId => $area) {
+                    $Ins_ExploreArea = new Ins_ExploreArea($area);
+                    $Ins_ExploreArea->fixArray();
+                  
+                    $dic->$areaId = $Ins_ExploreArea;                  
+                }
+                $this->store()->exploreArea = $dic;
+            }
+            
         }
     }