发
This commit is contained in:
parent
cf815ec4f7
commit
eab9495462
@ -22,7 +22,7 @@ if(!empty($_SERVER['HTTP_HOST']) && (preg_match("@weapp\.wemediacn@", strtolower
|
||||
"params"=>3
|
||||
)
|
||||
);
|
||||
|
||||
echo 1231232131231;die;
|
||||
$router->add(
|
||||
"/smsoauth2_qa/api/oauth2/code",
|
||||
array(
|
||||
@ -82,7 +82,7 @@ else{
|
||||
"params"=>3
|
||||
)
|
||||
);
|
||||
|
||||
echo 2222222;die;
|
||||
$router->add(
|
||||
"/smsoauth2/api/oauth2/code",
|
||||
array(
|
||||
|
||||
@ -10,13 +10,16 @@ class Oauth2Controller extends ControllerBase{
|
||||
function initialize(){
|
||||
parent::initialize();
|
||||
}
|
||||
|
||||
// http://127.0.0.1/tiffany/api/oauth2/wmqtest
|
||||
// http://weapp.wemediacn.net/d/tiffany/api/oauth2/wmqtest
|
||||
function wmqtestAction(){
|
||||
if($_SERVER['HTTP_HOST']!="127.0.0.1"){
|
||||
$this->_LogObj->LogWrite(TIFFANY_API_CHECK_LOG, '123213123');
|
||||
}
|
||||
echo time();die;
|
||||
$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/oauth2/code";
|
||||
// echo $url;die;
|
||||
$post_arr = array();
|
||||
$post_arr['appid'] = "123213213213123213213";
|
||||
$post_json = json_encode($post_arr);
|
||||
$result = $this->__http_post_request($url, $post_json, true);
|
||||
print_r($result); die;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user