From a73a990dd72a9619604fd5ed10a2ed2825f06826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=E5=B0=8F=E9=80=8F=E6=98=8E=E3=83=BB=E5=AE=B8?= =?UTF-8?q?=E2=9C=A8?= <1272742391@qq.com> Date: Tue, 14 May 2019 23:52:52 +0800 Subject: [PATCH] Add files via upload --- get_article_info.php | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);