明树Git Lab

Commit 9bd2f87c authored by zfp1's avatar zfp1

update

parent dc838111
......@@ -98,7 +98,7 @@ async function getTraceCode(req, res, next) {
traccode.source = source;
//请求公司信息
let companyInfo = await DB.CompanyInfo.findOne({}).lean().exec();
let companyInfo = await DB.CompanyInfo.findOne({}).populate({path: "companyInfoImgs"}).populate({path: "addressInfo.img"}).lean().exec();
traccode.companyInfo = companyInfo || {};
res.sendData(traccode);
} catch (error) {
......
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