Commit 0bf43b3e authored by joetsuihk's avatar joetsuihk

Update fetch.js to download more images

parent 566e59a1
......@@ -286,6 +286,10 @@
if ( item.filename.match(new RegExp(`^goods_${SKU}_sub`)) ||
item.filename.includes(`_${SKU}_chip`) ||
(item.filename.match(new RegExp(`^goods_[0-9]{2}_${SKU}$`)) && item.models.length === 0 && item.products.length === 1) // file name include SKU and no model
||
// 344010_322F005A_69_N040, 344010_322F005A_09_N030, 344010_322F005A_66_N010
// 342541_352F036A_01_N010, 342541_352F036A_46_N040, 342541_352F036A_55_N050, 342541_352F036A_09_N020, 342541_352F036A_39_N030
item.filename.match(new RegExp(`^${SKU}_[0-9A-Z]{8}_[0-9]{2}_N[0-9]{3}$`))
) {
arrlist["product"].push(item);
......
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