...
|
...
|
@@ -25,7 +25,7 @@ const moment = require('moment'); |
|
|
|
|
|
module.exports = async(time) => {
|
|
|
const beginTime = moment(Date.now()).format('YYYY-MM-DD HH:mm:ss');
|
|
|
ddAlert(`监控报警 : 开始执行 — ${beginTime} `, 'bjSpider');
|
|
|
ddAlert(`监控报警 : 比价开始 — ${beginTime} `, 'bjSpider');
|
|
|
const specialSizeProducts = await getSpecialSizeProducts();
|
|
|
const sizeData = await mysqlPool.query('select `size_name`,min(`id`) as id from `size` where `size_name` <> \'-\' group by `size_name`');
|
|
|
const sizeRelation = {};
|
...
|
...
|
@@ -58,7 +58,7 @@ module.exports = async(time) => { |
|
|
n++;
|
|
|
if (n == sknsData.length) {
|
|
|
const endTime = moment(Date.now()).format('YYYY-MM-DD HH:mm:ss');
|
|
|
ddAlert(`监控报警 : 执行结束 — ${endTime} `, 'bjSpider');
|
|
|
ddAlert(`监控报警 : 比价结束 — ${endTime} `, 'bjSpider');
|
|
|
}
|
|
|
|
|
|
if (result.status !== 200 && !_.has(result, 'data.detail')) {
|
...
|
...
|
|