Преглед изворни кода

fixed: 外网MongoDB连接字符串.

王刚 пре 3 година
родитељ
комит
59357d1fd3

+ 1 - 1
Gameserver/Amfphp/configs/config_and.php

@@ -48,7 +48,7 @@ class config_and extends config {
      * 外网MongoDB
      */
     protected function _InitOuterMongoDB() {
-        $this->mongodb = "mongodb://localhost:27017";
+        $this->mongodb = "mongodb://gwang:wanggang1985@localhost:27017/?authSource=admin";
     }
 
 }

+ 1 - 1
Gameserver/Amfphp/configs/config_ios.php

@@ -42,7 +42,7 @@ class config_ios extends config {
      * 外网MongoDB
      */
     protected function _InitOuterMongoDB() {
-        $this->mongodb = "mongodb://localhost:27017";
+        $this->mongodb = "mongodb://gwang:wanggang1985@localhost:27017/?authSource=admin";
     }
 
 }

+ 1 - 1
Gameserver/Amfphp/configs/config_web.php

@@ -41,7 +41,7 @@ class config_web extends config {
      * 外网MongoDB
      */
     protected function _InitOuterMongoDB() {
-        $this->mongodb = "mongodb://localhost:27017";
+        $this->mongodb = "mongodb://gwang:wanggang1985@localhost:27017/?authSource=admin";
     }
 
 }