Browse Source

初始化

cyzhao 1 năm trước cách đây
mục cha
commit
b256192da5
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      Gameserver/App/model/User/Data_UserGame.php

+ 3 - 1
Gameserver/App/model/User/Data_UserGame.php

@@ -40,6 +40,7 @@ class Data_UserGame extends HashSaver {
         //my_Assert(GameConfig::primordial_data(), "找不到账号初始化数据");         # 防御
         //$this->baseInfo = new Info_UserBase();
         $this->baseInfo->initialize();      
+        $this->store->initialize();
     }
 
     /**
@@ -48,7 +49,8 @@ class Data_UserGame extends HashSaver {
      */
     public function __construct($arg = null) {
         if (null === $arg) {                                                    # 未传参数的情况下
-            $this->baseInfo = new Info_UserBase();          
+            $this->baseInfo = new Info_UserBase();
+            $this->store = new Info_Store();
         } else {                                                                # 实参
             parent::__construct($arg);                                          # 调用Object的构造函数