Showing
4 changed files
with
7 additions
and
8 deletions
1 | <?php | 1 | <?php |
2 | class Util_Cache_Adapter_Memcached implements Util_Cache_Adapter_Interface { | 2 | class Util_Cache_Adapter_Memcached implements Util_Cache_Adapter_Interface { |
3 | - private $_domain = 'www.dev.yoho.cn'; //域名 | 3 | + private $_domain = 'www.pre.yoho.cn'; //域名 |
4 | private $_class = 'default'; //分类 | 4 | private $_class = 'default'; //分类 |
5 | private $_prefix = ''; //前缀 | 5 | private $_prefix = ''; //前缀 |
6 | 6 |
@@ -16,7 +16,7 @@ class Util_Dao_Dsn | @@ -16,7 +16,7 @@ class Util_Dao_Dsn | ||
16 | public static function getDbServer($dbname, $readtag = true, $dbType = 'Mysql',$charset='UTF8MB4') | 16 | public static function getDbServer($dbname, $readtag = true, $dbType = 'Mysql',$charset='UTF8MB4') |
17 | { | 17 | { |
18 | $options = array( | 18 | $options = array( |
19 | - 'dbname' => $dbname, | 19 | + 'dbname' => 'pre_'.$dbname, |
20 | 'readtag' => $readtag | 20 | 'readtag' => $readtag |
21 | ); | 21 | ); |
22 | $server = Util_Server::factory('Db', $dbType, $options)->loadBalanceServer(); | 22 | $server = Util_Server::factory('Db', $dbType, $options)->loadBalanceServer(); |
@@ -113,7 +113,7 @@ class Config_Defines | @@ -113,7 +113,7 @@ class Config_Defines | ||
113 | // 静态资源目录 | 113 | // 静态资源目录 |
114 | define('SITE_RES', 'http://res.yohood.test.yoho.cn'); | 114 | define('SITE_RES', 'http://res.yohood.test.yoho.cn'); |
115 | // 主站 | 115 | // 主站 |
116 | - define('SITE_MAIN', 'http://yohood.test.yoho.cn'); | 116 | + define('SITE_MAIN', 'http://yohood.dev.test.yoho.cn'); |
117 | define('QINIU_UPLOAD_STATE', true); | 117 | define('QINIU_UPLOAD_STATE', true); |
118 | define('QINIU_UPLOAD_CLASS', 'Lib_Utils_QiniuUpload'); | 118 | define('QINIU_UPLOAD_CLASS', 'Lib_Utils_QiniuUpload'); |
119 | define('QINIU_UPLOAD_ACCESSKEY', 'cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE'); | 119 | define('QINIU_UPLOAD_ACCESSKEY', 'cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE'); |
1 | [mysql] | 1 | [mysql] |
2 | - | ||
3 | -yohood.username = yohodb | ||
4 | -yohood.password = yohonj_9646_mysql | ||
5 | -yohood.writers = 127.0.0.1:3310 | ||
6 | -yohood.readers = 127.0.0.1:3310 | 2 | +pre_yohood.username = yohodb |
3 | +pre_yohood.password = yohonj_9646_mysql | ||
4 | +pre_yohood.writers = 10.170.183.158:5510 | ||
5 | +pre_yohood.readers = 10.170.183.158:5510 |
-
Please register or login to post a comment