Add files via upload

This commit is contained in:
✨小透明・宸✨
2019-05-14 23:52:52 +08:00
parent 009961cfe8
commit a73a990dd7
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
/* https://github.com/TransparentLC/WechatMomentScreenshot */ /* https://github.com/TransparentLC/WechatMomentScreenshot */
//允许跨域 //允许跨域
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin: *');
if (empty($_GET['url'])) { if (empty($_GET['url'])) {
$result['title'] = ''; $result['title'] = '';

View File

@@ -588,7 +588,7 @@
function getArticleInfo() { function getArticleInfo() {
mdui.prompt('文章链接', function (value) { mdui.prompt('文章链接', function (value) {
var xhr = new XMLHttpRequest; 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 () { xhr.onreadystatechange = function () {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
var result = JSON.parse(xhr.responseText); var result = JSON.parse(xhr.responseText);