diff --git a/mobile/get_openid.php b/mobile/get_openid.php new file mode 100644 index 0000000..079fadc --- /dev/null +++ b/mobile/get_openid.php @@ -0,0 +1,68 @@ +openid); + + + // $client = new \GuzzleHttp\Client(); + // $response = $client->request('GET', $token_url); + // $result = json_decode($response->getBody(), true); + // $openid = $result['openid']; + + // // 在这里处理获取到的openid + // echo $openid; +} else { + // 如果没有授权,则重定向到授权页面 + header('Location: ' . $auth_url); + var_dump($_GET['code']); + exit(); +} +?> \ No newline at end of file