diff --git a/mobile/blank.php b/mobile/blank.php index e7713d3..176a48d 100644 --- a/mobile/blank.php +++ b/mobile/blank.php @@ -12,7 +12,7 @@ $redirect_uri = 'https://shop.heavenk.com/mobile/blank.php'; // 回调URL // 获取授权 code if (!isset($_GET['code'])) { - $url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $app_id . '&redirect_uri=' . urlencode($redirect_uri) . '&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'; + $url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $appid . '&redirect_uri=' . urlencode($redirect_uri) . '&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'; header('Location: ' . $url); exit; }