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);