openid); // // 在这里处理获取到的openid // echo $openid; } else { // 如果没有授权,则重定向到授权页面 header('Location: ' . $auth_url); var_dump($_GET['code']); exit(); } ?>