diff --git a/get_article_info.php b/get_article_info.php index bf72a93..a9920ff 100644 --- a/get_article_info.php +++ b/get_article_info.php @@ -3,7 +3,7 @@ /* https://github.com/TransparentLC/WechatMomentScreenshot */ //允许跨域 -header('Access-Control-Allow-Origin:*'); +header('Access-Control-Allow-Origin: *'); if (empty($_GET['url'])) { $result['title'] = ''; diff --git a/index.html b/index.html index c4daf61..3ab8f51 100644 --- a/index.html +++ b/index.html @@ -588,7 +588,7 @@ function getArticleInfo() { mdui.prompt('文章链接', function (value) { var xhr = new XMLHttpRequest; - xhr.open('GET', 'http://101.132.76.23/get_article_info.php?url=' + encodeURIComponent(value)); //获取标题和封面的服务器 + xhr.open('GET', 'https://lit-inlet-66876.herokuapp.com/get_article_info.php?url=' + encodeURIComponent(value)); //获取标题和封面的服务器 xhr.onreadystatechange = function () { if (xhr.readyState == 4) { var result = JSON.parse(xhr.responseText);