Authored by 郝肖肖

'fix'

... ... @@ -14,8 +14,6 @@ MAINTAINER xiaoxiao.hao <xiaoxiao.hao@yoho.cn>
ENV NODE_ENV=production \
NODE_HOME=/home
RUN yum install gcc gcc-c++ kernel-devel -y
# COPY turbine configuration files
COPY yoho-seo.tar.gz /home
... ...
const xsd = require('libxml-xsd');
const fs = require('fs');
const xsdFile = fs.readFileSync('./apps/controllers/seo/xm.xsd').toString();
for (let i = 1; i <= 78; i++) {
const xml = `./public/dist/goods-xml/goods-${i}.xml`;
const xmlFile = fs.readFileSync(xml).toString();
const schema = xsd.parse(xsdFile);
const validationErrors = schema.validate(xmlFile);
console.log(`check => start: ${i} `);
validationErrors && validationErrors.forEach(verr => {
console.log(i, verr.line, verr.str1);
});
}
This diff could not be displayed because it is too large.
... ... @@ -20,7 +20,6 @@
"bluebird": "^3.5.0",
"express": "^4.14.1",
"express-handlebars": "^3.0.0",
"libxml-xsd": "^0.5.2",
"lodash": "^4.17.4",
"moment": "^2.18.1",
"node-schedule": "^1.2.1",
... ...