|
@@ -445,9 +445,9 @@ async function zipJs(zip: JSZip) {
|
|
|
export async function zipBkImg(zip: JSZip) {
|
|
|
let img = meta2d.store.data.bkImage;
|
|
|
if (img) {
|
|
|
- if (img.startsWith('/') || img.startsWith(cdn) || img.startsWith(upCdn)) {
|
|
|
- const pngs = await getTemPngs([img.replace(cdn, '').replace(upCdn, '')]);
|
|
|
- await zipImage(zip, img, pngs[img.replace(cdn, '').replace(upCdn, '')]);
|
|
|
+ if (img.startsWith('/') || img.startsWith(img_cdn) || img.startsWith(img_upCdn)) {
|
|
|
+ const pngs = await getTemPngs([img.replace(img_cdn, '').replace(img_upCdn, '')]);
|
|
|
+ await zipImage(zip, img, pngs[img.replace(img_cdn, '').replace(img_upCdn, '')]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -568,11 +568,11 @@ export async function zipImages(zip: JSZip, pens: Pen[]) {
|
|
|
}
|
|
|
//付费pngs
|
|
|
const pngs = await getTemPngs(
|
|
|
- images.map((i) => i.replace(cdn, '').replace(upCdn, ''))
|
|
|
+ images.map((i) => i.replace(img_cdn, '').replace(img_upCdn, ''))
|
|
|
);
|
|
|
await Promise.all(
|
|
|
images.map((image) =>
|
|
|
- zipImage(zip, image, pngs[image.replace(cdn, '').replace(upCdn, '')])
|
|
|
+ zipImage(zip, image, pngs[image.replace(img_cdn, '').replace(img_upCdn, '')])
|
|
|
)
|
|
|
);
|
|
|
}
|