Browse Source

Merge branch 'dev' into TTT

cyzhao 3 năm trước cách đây
mục cha
commit
02fc0b497f

+ 1 - 0
Gameserver/Amfphp/model/User/Info_Store.php

@@ -86,6 +86,7 @@ class Info_Store extends Object_ext {
         
         $key = 1;
         $key2 = 2;
+        $this->storage = ObjectInit();
         $this->storage->$key = new Ins_storage();
         $this->storage->$key2 = new Ins_storage();
               

+ 10 - 0
Gameserver/Amfphp/process/UserProc.php

@@ -387,6 +387,16 @@ class UserProc {
             );
             return Resp::ok($ret);
         } else {                                                                # 2.如果玩家已存在,则处理普通登录流程
+            if($game->store->storage ==null){
+                $key = 1;
+                $key2 = 2;
+               
+                $game->store->storage = ObjectInit();
+                $game->store->storage->$key = new Ins_storage();
+                $game->store->storage->$key2 = new Ins_storage();
+            }
+            
+            
             req()->game = $game;                                                # 给Req挂载玩家数据
             UserProc::checkContidays();                                         # 连续登录,状态检查
             PayProc::m_refreshChargeOrders();                                   # 刷新订单, 多平台版本