阿发
This commit is contained in:
parent
fa4f578469
commit
811b747b5a
@ -58,6 +58,7 @@ elseif($_SERVER['HTTP_HOST']=="weapp.wemediacn.net" || !empty($_SERVER['SCRIPT_F
|
||||
}
|
||||
//如果是正式环境
|
||||
else{
|
||||
echo 1232132132132132131232131;die;
|
||||
//日志前缀
|
||||
define("TIFFANY_API_REDIS_LOG_PREFIX", "tiffany/api/");
|
||||
|
||||
|
||||
@ -12,53 +12,53 @@ if(!empty($_SERVER['REQUEST_URI'])&& (preg_match("@\/d\/@", strtolower($_SERVER[
|
||||
)
|
||||
);
|
||||
|
||||
// $router->add(
|
||||
// "/smsoauth2_qa/api/oauth2/code",
|
||||
// array(
|
||||
// "controller" => 'oauth2' ,
|
||||
// "action" => 'code',
|
||||
// )
|
||||
// );
|
||||
$router->add(
|
||||
"/smsoauth2_qa/api/oauth2/code",
|
||||
array(
|
||||
"controller" => 'oauth2' ,
|
||||
"action" => 'code',
|
||||
)
|
||||
);
|
||||
|
||||
// $router->add(
|
||||
// "/smsoauth2_qa/api/oauth2/accesstoken",
|
||||
// array(
|
||||
// "controller" => 'oauth2' ,
|
||||
// "action" => 'accesstoken',
|
||||
// )
|
||||
// );
|
||||
$router->add(
|
||||
"/smsoauth2_qa/api/oauth2/accesstoken",
|
||||
array(
|
||||
"controller" => 'oauth2' ,
|
||||
"action" => 'accesstoken',
|
||||
)
|
||||
);
|
||||
|
||||
// $router->add(
|
||||
// "/smsoauth2_qa/api/sms/send",
|
||||
// array(
|
||||
// "controller" => 'sms' ,
|
||||
// "action" => 'send',
|
||||
// )
|
||||
// );
|
||||
$router->add(
|
||||
"/smsoauth2_qa/api/sms/send",
|
||||
array(
|
||||
"controller" => 'sms' ,
|
||||
"action" => 'send',
|
||||
)
|
||||
);
|
||||
|
||||
// $router->add(
|
||||
// "/smsoauth2_qa/api/sms/authcode",
|
||||
// array(
|
||||
// "controller" => 'sms' ,
|
||||
// "action" => 'authcode',
|
||||
// )
|
||||
// );
|
||||
$router->add(
|
||||
"/smsoauth2_qa/api/sms/authcode",
|
||||
array(
|
||||
"controller" => 'sms' ,
|
||||
"action" => 'authcode',
|
||||
)
|
||||
);
|
||||
|
||||
// $router->add(
|
||||
// "/smsoauth2_qa/api/sms/query_reports",
|
||||
// array(
|
||||
// "controller" => 'sms' ,
|
||||
// "action" => 'query_reports',
|
||||
// )
|
||||
// );
|
||||
$router->add(
|
||||
"/smsoauth2_qa/api/sms/query_reports",
|
||||
array(
|
||||
"controller" => 'sms' ,
|
||||
"action" => 'query_reports',
|
||||
)
|
||||
);
|
||||
|
||||
// $router->add(
|
||||
// "/smsoauth2_qa/api/urls/shorturl",
|
||||
// array(
|
||||
// "controller" => 'urls' ,
|
||||
// "action" => 'shorturl',
|
||||
// )
|
||||
// );
|
||||
$router->add(
|
||||
"/smsoauth2_qa/api/urls/shorturl",
|
||||
array(
|
||||
"controller" => 'urls' ,
|
||||
"action" => 'shorturl',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
// print_r($router);die;
|
||||
|
||||
@ -167,13 +167,15 @@ $di->set('redis', function ()
|
||||
preg_match("@we-shorturl\.wemediacn@", strtolower($_SERVER['HTTP_HOST']))
|
||||
)
|
||||
{
|
||||
$redisObj->connect('r-bp11564d96842414128.redis.rds.aliyuncs.com', 6379);
|
||||
$redisObj->auth('3Nsb4Pmsl9bcLs24mL12l');
|
||||
echo 111113434;die;
|
||||
// $redisObj->connect('r-bp11564d96842414128.redis.rds.aliyuncs.com', 6379);
|
||||
// $redisObj->auth('3Nsb4Pmsl9bcLs24mL12l');
|
||||
} elseif ($_SERVER['HTTP_HOST'] == '127.0.0.1'){ //本地环境
|
||||
$redisObj->connect('mysql5.weu.me', 6379);
|
||||
} else{
|
||||
$redisObj->connect('r-bp1i8kwmlrnp6hhrkf.redis.rds.aliyuncs.com', 6379);
|
||||
$redisObj->auth('r-bp1i8kwmlrnp6hhrkf');
|
||||
echo 22222243434;die;
|
||||
// $redisObj->connect('r-bp1i8kwmlrnp6hhrkf.redis.rds.aliyuncs.com', 6379);
|
||||
// $redisObj->auth('r-bp1i8kwmlrnp6hhrkf');
|
||||
}
|
||||
|
||||
$redisObj->select(REDIS_DB_NUMBER);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user