Browse Source

fixed: 暂时关闭还原功能

王刚 3 years ago
parent
commit
1b705e1d40
1 changed files with 11 additions and 11 deletions
  1. 11 11
      Gameserver/Amfphp/process/UserProc.php

+ 11 - 11
Gameserver/Amfphp/process/UserProc.php

@@ -555,17 +555,17 @@ class UserProc {
         $key = MemKey_User::Info_hash($zoneid, $uid);
         $a = new Data_UserGame();
         if (null == $a->readDataFromMem($key)) {
-            $collection = "ylsj2019.userInfoBack";
-            $cursor = gMongo()->find($collection, ['key' => $key]);
-            if ($cursor && $cursor->valid()) {
-                foreach ($cursor as $v) {
-                    $a->LoadFrom($v->value);                                    # 加载
-                    $a->updateDataFull($key);                                   # 反向写回redis
-                    break;                                                      # 其实是只有一条  
-                }
-            } else {
-                return null;
-            }
+//            $collection = "ylsj2019.userInfoBack";
+//            $cursor = gMongo()->find($collection, ['key' => $key]);
+//            if ($cursor && $cursor->valid()) {
+//                foreach ($cursor as $v) {
+//                    $a->LoadFrom($v->value);                                    # 加载
+//                    $a->updateDataFull($key);                                   # 反向写回redis
+//                    break;                                                      # 其实是只有一条  
+//                }
+//            } else {
+            return null;
+//            }
         }
         $usrInfo = new UserInfoMo();
         $g = new Data_UserGame($a);