rabin 3 年之前
父节点
当前提交
a9aa4a9555
共有 1 个文件被更改,包括 17 次插入17 次删除
  1. 17 17
      config/env/localhost/default.php

+ 17 - 17
config/env/localhost/default.php

@@ -44,21 +44,21 @@ $config['database'] = array
     # 是否开启sql自动优化,将sql中的select * 转换为 select a,b形式,将sql中的where条件按照索引从左到右自动排序,必须打开上述的opt选项,数据量大时建议打开。
     //'sqlOp' => true,
     'create' => $create,
-	# 默认数据库配置
-	'default' => array
-	(
-		'type' => 'pdo',
-		'host' => array
-		(
-			'read' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
-			'update' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
+    # 默认数据库配置
+    'default' => array
+    (
+        'type' => 'pdo',
+        'host' => array
+        (
+            'read' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
+            'update' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
             'create' => isset($dc['mysql']) ? $dc['mysql']['host_create'] : 'web-mysql:3306',
-		),
-		'database' => 'churen',
-		'username' => isset($dc['mysql']) ? $dc['mysql']['username'] : 'root',
-		'password' => isset($dc['mysql']) ? $dc['mysql']['password'] : '123456',
-		'charset' => 'utf8mb4',
-	),
+        ),
+        'database' => 'churen',
+        'username' => isset($dc['mysql']) ? $dc['mysql']['username'] : 'root',
+        'password' => isset($dc['mysql']) ? $dc['mysql']['password'] : '123456',
+        'charset' => 'utf8mb4',
+    ),
 
     # 定义历史数据库
     'old' => array
@@ -132,7 +132,7 @@ $config['cache'] = array
 
 $config['debug'] = array
 (
-	'log' => false
+    'log' => false
 );
 
 /*
@@ -142,7 +142,7 @@ if (DEVER_APP_NAME == 'source') {
 */
 
 
-$host = 'http://'.$local . '/churen/';
+$host = 'http://'.$local . '/';
 
 $name = '';
 
@@ -173,4 +173,4 @@ if (!strstr($_SERVER['DOCUMENT_URI'], 'goods')) {
 }
 */
 
-return $config;
+return $config;