Authored by 周少峰

comment keypage

... ... @@ -40,15 +40,15 @@ const start = () => {
// 推送最新的商品详情和逛文章
sendUrls();
// 同步关键词
synchronousKeywords();
//// 同步关键词
//synchronousKeywords();
});
schedule.scheduleJob('0 0 2 * * *', function() {
// 推送关键词页面
sendKeywordsUrls();
});
//schedule.scheduleJob('0 0 2 * * *', function() {
//
// // 推送关键词页面
// sendKeywordsUrls();
//});
};
module.exports = {
... ...
... ... @@ -242,8 +242,8 @@ const sendKeywordsUrls = () => {
console.log(urls);
// 发送到百度
sendUrlsToBaidu({site: 'https://www.yohobuy.com'}, urls.pc);
sendUrlsToBaidu({site: 'https://m.yohobuy.com'}, urls.wap);
//sendUrlsToBaidu({site: 'https://www.yohobuy.com'}, urls.pc);
//sendUrlsToBaidu({site: 'https://m.yohobuy.com'}, urls.wap);
}).catch(() => {
clearInterval(interval);
});
... ...