Charlie 9 years ago
parent
commit
571bf71eef
2 changed files with 3 additions and 2 deletions
  1. 1 0
      www/index.php
  2. 2 2
      www/protected/config/test.php

+ 1 - 0
www/index.php

@@ -27,6 +27,7 @@
         defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
         $environment = 'test';
     }
+    var_dump($config);exit;
     $is_spider = false;
     $spider_user_agent="/Googlebot|msnbot|spider|archiver|slurp|YoudaoBot|Nutch|Crawler|bingbot/i";
     if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match($spider_user_agent, $_SERVER['HTTP_USER_AGENT'])){

+ 2 - 2
www/protected/config/test.php

@@ -13,7 +13,7 @@ return CMap::mergeArray(
             ),
             'mongodb_data' => array(//管理后台的数据库
                 'class'            => 'EMongoDB',
-                'connectionString' => 'mongodb://root:wozhua=9527@10.10.221.173:27017',
+                'connectionString' => 'mongodb://root:wozhua=9527@10.9.198.18:27017',
                 'dbName'           => 'data',
                 'fsyncFlag'        => true,
                 'safeFlag'         => true,
@@ -21,7 +21,7 @@ return CMap::mergeArray(
             ),
             'mongodb_o2o' => array(//o2o的数据库
                 'class'            => 'EMongoDB',
-                'connectionString' => 'mongodb://root:wozhua=9527@10.10.221.173:27017',
+                'connectionString' => 'mongodb://root:wozhua=9527@10.9.198.18:27017',
                 'dbName'           => 'fuwu',
                 'fsyncFlag'        => true,
                 'safeFlag'         => true,