Authored by whb

release_v1.4

<?php
class Util_Cache_Adapter_Memcached implements Util_Cache_Adapter_Interface {
private $_domain = 'www.dev.yoho.cn'; //域名
private $_domain = 'www.pre.yoho.cn'; //域名
private $_class = 'default'; //分类
private $_prefix = ''; //前缀
... ...
... ... @@ -16,7 +16,7 @@ class Util_Dao_Dsn
public static function getDbServer($dbname, $readtag = true, $dbType = 'Mysql',$charset='UTF8MB4')
{
$options = array(
'dbname' => $dbname,
'dbname' => 'pre_'.$dbname,
'readtag' => $readtag
);
$server = Util_Server::factory('Db', $dbType, $options)->loadBalanceServer();
... ...
... ... @@ -113,7 +113,7 @@ class Config_Defines
// 静态资源目录
define('SITE_RES', 'http://res.yohood.test.yoho.cn');
// 主站
define('SITE_MAIN', 'http://yohood.test.yoho.cn');
define('SITE_MAIN', 'http://yohood.dev.test.yoho.cn');
define('QINIU_UPLOAD_STATE', true);
define('QINIU_UPLOAD_CLASS', 'Lib_Utils_QiniuUpload');
define('QINIU_UPLOAD_ACCESSKEY', 'cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE');
... ...
[mysql]
yohood.username = yohodb
yohood.password = yohonj_9646_mysql
yohood.writers = 127.0.0.1:3310
yohood.readers = 127.0.0.1:3310
pre_yohood.username = yohodb
pre_yohood.password = yohonj_9646_mysql
pre_yohood.writers = 10.170.183.158:5510
pre_yohood.readers = 10.170.183.158:5510
... ...