diff --git a/mobile/blank.php b/mobile/blank.php index 841fee4..e7713d3 100644 --- a/mobile/blank.php +++ b/mobile/blank.php @@ -25,7 +25,7 @@ if ($code != null){ var_dump("code is null"); } // code已经成功获取到 -$url = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=' . $app_id . '&secret=' . $app_secret . '&code=' . $code . '&grant_type=authorization_code'; +$url = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=' . $appid . '&secret=' . $appsecret . '&code=' . $code . '&grant_type=authorization_code'; $response = file_get_contents($url); echo $response; // $data = json_decode($response, true);