| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | 
							- <?php
 
- # 数据库配置
 
- $config['database'] = array
 
- (
 
- 	# 默认数据库配置
 
- 	'default' => array
 
- 	(
 
- 		'type' => 'pdo',
 
- 		'host' => array
 
- 		(
 
- 			'read' => 'web-mysql:3306',
 
- 			'update' => 'web-mysql:3306',
 
- 		),
 
- 		'database' => 'wonderful',
 
- 		'username' => 'root',
 
- 		'password' => '123456',
 
- 		'charset' => 'utf8',
 
- 	),
 
- );
 
- $config['debug'] = array
 
- (
 
- 	'log' => array('type' => 'file'),
 
- );
 
- $local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '192.168.33.10';
 
- $host = 'http://'.$local . '/';
 
- $upload = $host . 'upload/';
 
- $uploadcdn = $host . 'upload/data/';
 
- $config['host'] = array
 
- (
 
-     'upload'=> $upload . 'upload/?save',
 
-     'uploadRes'     => $uploadcdn . 'upload/',
 
-     'project' => array
 
-     (
 
-         /*
 
-         'upload' => array
 
-         (
 
-             'path' => $host. 'upload/upload/?',
 
-         ),
 
-         */
 
-         'pay' => array
 
-         (
 
-             'path' => $host. 'pay/pay/?',
 
-         ),
 
-         'wechat_applet' => array
 
-         (
 
-             'path' => $host. 'wechat/wechat_applet/?',
 
-         ),
 
-     ),
 
- );
 
- return $config;
 
 
  |