明树Git Lab

Commit 42fafe5c authored by zfp1's avatar zfp1

update

parent ff201917
...@@ -90,9 +90,9 @@ async function getTraceCode(req, res, next) { ...@@ -90,9 +90,9 @@ async function getTraceCode(req, res, next) {
source.devices = []; source.devices = [];
} }
} else if(traccode.type && traccode.type == 2) { } else if(traccode.type && traccode.type == 2) {
source = await DB.ProductPre.findOne({_id: sourceId}).lean(); source = await DB.ProductPre.findOne({_id: sourceId}).populate({path: "productPhotos"}).lean();
} else if(traccode.type && traccode.type == 3) { } else if(traccode.type && traccode.type == 3) {
source = await DB.ProductDeep.findOne({_id: sourceId}).lean(); source = await DB.ProductDeep.findOne({_id: sourceId}).populate({path: "productPhotos"}).lean();
} }
console.log(source, "==") console.log(source, "==")
......
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