【代码优化】SYSTEM:微信小程序的订阅

This commit is contained in:
YunaiV
2024-07-31 23:46:08 +08:00
parent ececc6f67c
commit 7f5970d741
6 changed files with 31 additions and 37 deletions
@@ -1,7 +1,7 @@
import user from './user';
import goods from './goods';
import groupon from './groupon';
import third from '@/sheep/api/migration/third';
import SocialApi from '@/sheep/api/member/social';
export function getPosterData(options) {
switch (options.shareInfo.poster.type) {
@@ -34,6 +34,6 @@ export function formatImageUrlProtocol(url) {
// 获得微信小程序码 Base64 image
export async function getWxaQrcode(path, query) {
const res = await third.wechat.getWxacode(path, query);
const res = await SocialApi.getWxaQrcode(path, query);
return 'data:image/png;base64,' + res.data;
}