From a9a21b1bd2f7747cc97c89fbc74db7f52487153c Mon Sep 17 00:00:00 2001 From: luchenqun Date: Thu, 9 Mar 2017 20:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96favicon=E7=9A=84=E6=8D=A2?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/api.js b/routes/api.js index 54aa9a5..8ce42c0 100644 --- a/routes/api.js +++ b/routes/api.js @@ -960,11 +960,11 @@ api.getFaviconByTimer = function() { }); } else { // http://www.cnblogs.com/zhangwei595806165/p/4984912.html 各种方法都试一遍 - var faviconUrl = "http://g.soz.im/" + url; // 默认地址 + var faviconUrl = "http://www.google.com/s2/favicons?domain=" + url; // 默认地址 if (faviconState == 1) { - faviconUrl = "http://www.google.com/s2/favicons?domain=" + url; - } else if (faviconState == 2) { faviconUrl = "http://favicon.byi.pw/?url=" + url; + } else if (faviconState == 2) { + faviconUrl = "http://g.soz.im/" + url; } download(faviconUrl).then(data => { fs.writeFileSync(faviconPath, data);