发
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
|
"params"=>3
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
echo 1231232131231;die;
|
||||||
$router->add(
|
$router->add(
|
||||||
"/smsoauth2_qa/api/oauth2/code",
|
"/smsoauth2_qa/api/oauth2/code",
|
||||||
array(
|
array(
|
||||||
@ -82,7 +82,7 @@ else{
|
|||||||
"params"=>3
|
"params"=>3
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
echo 2222222;die;
|
||||||
$router->add(
|
$router->add(
|
||||||
"/smsoauth2/api/oauth2/code",
|
"/smsoauth2/api/oauth2/code",
|
||||||
array(
|
array(
|
||||||
|
|||||||
@ -10,13 +10,16 @@ class Oauth2Controller extends ControllerBase{
|
|||||||
function initialize(){
|
function initialize(){
|
||||||
parent::initialize();
|
parent::initialize();
|
||||||
}
|
}
|
||||||
|
// http://127.0.0.1/tiffany/api/oauth2/wmqtest
|
||||||
// http://weapp.wemediacn.net/d/tiffany/api/oauth2/wmqtest
|
// http://weapp.wemediacn.net/d/tiffany/api/oauth2/wmqtest
|
||||||
function wmqtestAction(){
|
function wmqtestAction(){
|
||||||
if($_SERVER['HTTP_HOST']!="127.0.0.1"){
|
$url = "http://wxapp.wemediacn.com/smsoauth2_qa/api/oauth2/code";
|
||||||
$this->_LogObj->LogWrite(TIFFANY_API_CHECK_LOG, '123213123');
|
// echo $url;die;
|
||||||
}
|
$post_arr = array();
|
||||||
echo time();die;
|
$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