|
|
|
@@ -240,6 +240,19 @@ module.exports = class extends think.Service { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 送检信息附件(送检单照片) |
|
|
|
if (fileTypes.includes('sample_photos')) { |
|
|
|
let samplePhotos = []; |
|
|
|
try { |
|
|
|
samplePhotos = Array.isArray(p.sample_photos) ? p.sample_photos : JSON.parse(p.sample_photos || '[]'); |
|
|
|
} catch (e) { /* ignore */ } |
|
|
|
samplePhotos.forEach((url, idx) => { |
|
|
|
if (url) { |
|
|
|
files.push({ name: `送检单照片_${idx + 1}${this._getExt(url)}`, url }); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
if (files.length) { |
|
|
|
list.push({ folder, files }); |
|
|
|
} |
|
|
|
|