This commit is contained in:
wangmingqing 2023-05-30 14:15:49 +08:00
parent cf815ec4f7
commit eab9495462
2 changed files with 10 additions and 7 deletions

View File

@ -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(

View File

@ -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;
} }
/** /**