明树Git Lab

Commit 52901400 authored by zfp1's avatar zfp1

update

parent b8cae0ca
......@@ -129,7 +129,7 @@ async function getTraceCode2(req, res, next) {
if (!req.body._id) {
return res.sendError(errorMessage.resourceNotFound);
}
let traccode = await DB.ProTraceCode.findOne({ _id: req.body._id }, { type: 1, source: 1, tcode: 1, queryNum: 1, firstQueryTime: 1, _id: 1 }).lean();
let traccode = await DB.ProTraceCode.findOne({ _id: req.body._id }, { type: 1, source: 1, tcode: 1, productSalUrl: 1,queryNum: 1, firstQueryTime: 1, _id: 1 }).lean();
if (!(traccode && traccode._id && traccode.source)) {
return res.sendError(errorMessage.resourceNotFound);
}
......
......@@ -47,7 +47,7 @@ module.exports = async (req, res, next) => {
}
function checkPath(path) {
if (['/user/login', '/user/regist', '/plant/product/trace/info'].includes(path)) {
if (['/user/login', '/user/regist', '/plant/product/trace/info', '/plant/product/trace/info2','/plant/product/trace/suyuan','/plant/product/trace/jiankong','/plant/product/trace/zhijian','/api/company/info'].includes(path)) {
return true;
} else {
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment