diff --git a/app/config/consts.php b/app/config/consts.php index 7a9ef96..d5fe9e8 100644 --- a/app/config/consts.php +++ b/app/config/consts.php @@ -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/"); diff --git a/app/config/router.php b/app/config/router.php index 60aeab2..cde54f6 100644 --- a/app/config/router.php +++ b/app/config/router.php @@ -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; diff --git a/app/config/services.php b/app/config/services.php index 16bf58b..93b257d 100644 --- a/app/config/services.php +++ b/app/config/services.php @@ -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);