Browse Source

bug修复

cyzhao 1 year ago
parent
commit
787e8a28b2

+ 8 - 0
Gameserver/App/model/User/Ins_Gem.php

@@ -44,6 +44,14 @@ class Ins_Gem {
      */
      */
     public $isNew = 0;
     public $isNew = 0;
     
     
+    /**
+     * 构造函数
+     * @param type $args
+     */
+    public function __construct($args) {
+        parent::__construct($args);
+    }
+    
     /**
     /**
      * 配置
      * 配置
      * @return sm_gem
      * @return sm_gem

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

@@ -361,7 +361,7 @@ class StoreProc {
         $user = ctx();
         $user = ctx();
 
 
         my_Assert(StlUtil::dictHasProperty($user->store->gemStore, $uid), ErrCode::user_store_NoItem);
         my_Assert(StlUtil::dictHasProperty($user->store->gemStore, $uid), ErrCode::user_store_NoItem);
-        $ins_gem = $user->store->gemStore->$uid;
+        $ins_gem = new Ins_Gem($user->store->gemStore->$uid);
         
         
         $pag = $user->store->equipPag;
         $pag = $user->store->equipPag;
         $posId = $ins_gem->mo()->position;
         $posId = $ins_gem->mo()->position;

+ 18 - 18
Gameserver/App/process/UserProc.php

@@ -93,24 +93,24 @@ class UserProc {
         }
         }
         $zoneList = array();
         $zoneList = array();
         $ts = now();
         $ts = now();
-        foreach (GameConfig::zonelist() as $zoneid => $zone) {
-            isEditor() and $zone = new \sm_zonelist();
-            if ($zone->publicTs > $ts) {
-                continue;
-            }
-            $zone->zoneid = $zoneid;                                            # 把zoneid塞进zone数据结构中
-            if ($bGetRecommended) {
-                if ($zone->isRecommended > 0 && $zone->status == 1) {
-                    $zoneList[] = $zone;
-                } else {
-
-                }
-            } else {
-                $zoneList[] = $zone;
-            }
-            unset($zone->isRecommended);
-        }
-        UserProc::_AddTesterZonelist($zoneList);                                # 添加测试分区
+//        foreach (GameConfig::zonelist() as $zoneid => $zone) {
+//            isEditor() and $zone = new \sm_zonelist();
+//            if ($zone->publicTs > $ts) {
+//                continue;
+//            }
+//            $zone->zoneid = $zoneid;                                            # 把zoneid塞进zone数据结构中
+//            if ($bGetRecommended) {
+//                if ($zone->isRecommended > 0 && $zone->status == 1) {
+//                    $zoneList[] = $zone;
+//                } else {
+//
+//                }
+//            } else {
+//                $zoneList[] = $zone;
+//            }
+//            unset($zone->isRecommended);
+//        }
+//        UserProc::_AddTesterZonelist($zoneList);                                # 添加测试分区
 #
 #
 // <editor-fold defaultstate="collapsed" desc="    取玩家分区记录    ">
 // <editor-fold defaultstate="collapsed" desc="    取玩家分区记录    ">
         $userZoneInfo = self::getUserZoneInfo();                                # 玩家分区记录
         $userZoneInfo = self::getUserZoneInfo();                                # 玩家分区记录