...
|
...
|
@@ -431,7 +431,7 @@ const sendUrls = (limit, page) => { |
|
|
|
|
|
// 根据 site 推送相应站点
|
|
|
return Promise.all([sendUrlsToBaidu({site: 'https://www.yohobuy.com'}, pcPages),sendUrlsToBaidu({site: 'https://m.yohobuy.com'}, wapPages)]).then(result => {
|
|
|
let updateSql = `UPDATE seo_keywords SET is_push = 1 WHERE id >= ${_.get(_.first(d), 'id')} and id <= ${_.get(_.last(d), 'id')}`;
|
|
|
let updateSql = `UPDATE seo_keywords SET is_push = 1 WHERE id >= ${_.get(_.first(d), 'id')} and id <= ${_.get(_.last(d), 'id')} and yoho_goods_num > ${lestGoodsNum} and status=1`;
|
|
|
|
|
|
// 更新关键词推送状态
|
|
|
return mysql.query(updateSql).then(updateRes => {
|
...
|
...
|
|