Authored by 杨延青

Revert "Revert "fix version REG""

This reverts commit 02c3de14
const rp = require('request-promise');
const ddAlert = require('../libs/dingding-alert');
const {logger} = require('../libs/logger');
const REG_CHECK = /="(\d\.\d\.\d)"/;
const REG_CHECK = /'(\d\.\d\.\d)';/;
const version = '4.4.0';
const matchHtml = async(tick = 1) => {
... ...
... ... @@ -24,7 +24,7 @@ module.exports = async() => {
const relations = ufoProducts.map(product => {
const duFind = duProducts.find(dp => {
return _.toUpper(dp.articleNumber) === _.toUpper(product.product_code);
return _.toUpper(_.trim(dp.articleNumber)) === _.toUpper(_.trim(product.product_code));
});
const sjFinds = sjProduct.filter(dp => dp.model === product.product_code);
... ...