发放
This commit is contained in:
parent
b2d5eb1e52
commit
53a4cea2b8
@ -12,53 +12,55 @@ if(!empty($_SERVER['REQUEST_URI'])&& (preg_match("@\/d\/@", strtolower($_SERVER[
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$router->add(
|
// $router->add(
|
||||||
"/smsoauth2_qa/api/oauth2/code",
|
// "/smsoauth2_qa/api/oauth2/code",
|
||||||
array(
|
// array(
|
||||||
"controller" => 'oauth2' ,
|
// "controller" => 'oauth2' ,
|
||||||
"action" => 'code',
|
// "action" => 'code',
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
|
|
||||||
$router->add(
|
// $router->add(
|
||||||
"/smsoauth2_qa/api/oauth2/accesstoken",
|
// "/smsoauth2_qa/api/oauth2/accesstoken",
|
||||||
array(
|
// array(
|
||||||
"controller" => 'oauth2' ,
|
// "controller" => 'oauth2' ,
|
||||||
"action" => 'accesstoken',
|
// "action" => 'accesstoken',
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
|
|
||||||
$router->add(
|
// $router->add(
|
||||||
"/smsoauth2_qa/api/sms/send",
|
// "/smsoauth2_qa/api/sms/send",
|
||||||
array(
|
// array(
|
||||||
"controller" => 'sms' ,
|
// "controller" => 'sms' ,
|
||||||
"action" => 'send',
|
// "action" => 'send',
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
|
|
||||||
$router->add(
|
// $router->add(
|
||||||
"/smsoauth2_qa/api/sms/authcode",
|
// "/smsoauth2_qa/api/sms/authcode",
|
||||||
array(
|
// array(
|
||||||
"controller" => 'sms' ,
|
// "controller" => 'sms' ,
|
||||||
"action" => 'authcode',
|
// "action" => 'authcode',
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
|
|
||||||
|
// $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/sms/query_reports",
|
|
||||||
array(
|
|
||||||
"controller" => 'sms' ,
|
|
||||||
"action" => 'query_reports',
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
$router->add(
|
|
||||||
"/smsoauth2_qa/api/urls/shorturl",
|
|
||||||
array(
|
|
||||||
"controller" => 'urls' ,
|
|
||||||
"action" => 'shorturl',
|
|
||||||
)
|
|
||||||
);
|
|
||||||
// print_r($router);die;
|
// print_r($router);die;
|
||||||
}else if($_SERVER['HTTP_HOST'] == '127.0.0.1'){
|
}else if($_SERVER['HTTP_HOST'] == '127.0.0.1'){
|
||||||
$router->add(
|
$router->add(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user