fengyuexingzi 8 years ago
parent 6df8897d84
commit abe04f59b0

@ -10,9 +10,12 @@ register_shutdown_function('shutdown');
function shutdown() function shutdown()
{ {
echo '<pre>'; $error = error_get_last();
print_r(error_get_last()); if ($error) {
echo '</pre>'; echo '<pre>';
print_r($error);
echo '</pre>';
}
} }
function dump($data) function dump($data)

@ -6,7 +6,7 @@
* Time: 15:17 * Time: 15:17
*/ */
require_once"./function.php"; require_once "./function.php";
// get_code_url = "https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=81cc4t9fuu9bpu&redirect_uri=https%3A%2F%2Ffengyuexingzi.top%2Fauth%2Flinkedin&state=Wf6tYXQ7y86iRulBOC%2FUXraHneM%3D&scope=r_fullprofile%20r_emailaddress%20w_share"; // get_code_url = "https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=81cc4t9fuu9bpu&redirect_uri=https%3A%2F%2Ffengyuexingzi.top%2Fauth%2Flinkedin&state=Wf6tYXQ7y86iRulBOC%2FUXraHneM%3D&scope=r_fullprofile%20r_emailaddress%20w_share";
@ -38,3 +38,5 @@ $url = getCodeUrl();
$html = <<<EOF $html = <<<EOF
<a href="${url}">获取授权</a> <a href="${url}">获取授权</a>
EOF; EOF;
echo $html;

Loading…
Cancel
Save