瀏覽代碼

储物间玩家字段bug修复

cyzhao 3 年之前
父節點
當前提交
3b7e383ba4
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      Gameserver/Amfphp/model/User/Info_Store.php
  2. 1 1
      Gameserver/Amfphp/process/StoreProc.php

+ 3 - 3
Gameserver/Amfphp/model/User/Info_Store.php

@@ -84,11 +84,11 @@ class Info_Store extends Object_ext {
         $this->weaponPool = ObjectInit();
         $this->weaponPool = ObjectInit();
         $this->weaponReward = ObjectInit();
         $this->weaponReward = ObjectInit();
         
         
-        $this->$storage = ObjectInit();
+        $this->storage = ObjectInit();
         $key = 1;
         $key = 1;
         $key2 = 2;
         $key2 = 2;
-        $this->$storage->$key = array();
-        $this->$storage->$key2 = array();
+        $this->storage->$key = array();
+        $this->storage->$key2 = array();
         
         
     }
     }
 
 

+ 1 - 1
Gameserver/Amfphp/process/StoreProc.php

@@ -150,7 +150,7 @@ class StoreProc {
 
 
         UserProc::updateUserInfo();
         UserProc::updateUserInfo();
 
 
-        return Resp::ok();
+        return Resp::ok(array("store"=> ctx()->store(),));
     }
     }
 
 
     /**
     /**