海报:修复海报保存报错

This commit is contained in:
puhui999
2024-05-27 15:26:05 +08:00
parent 6b8a4fec29
commit f00a8052ea
5 changed files with 19 additions and 13 deletions
@@ -1,6 +1,7 @@
import user from './user';
import goods from './goods';
import groupon from './groupon';
import third from '@/sheep/api/migration/third';
export function getPosterData(options) {
switch (options.shareInfo.poster.type) {
@@ -30,3 +31,9 @@ export function formatImageUrlProtocol(url) {
return url;
}
// 获得微信小程序码 Base64 image
export async function getWxaQrcode(path, query) {
const res = await third.wechat.getWxacode(path, query);
return 'data:image/png;base64,' + res.data;
}