fix:多平台兼容

This commit is contained in:
2026-03-16 11:52:27 +08:00
parent b3836b8bf2
commit a79cf10bd4
18 changed files with 358 additions and 295 deletions
+8 -1
View File
@@ -186,9 +186,16 @@
// 获取广告图片
const getBannerImages = async () => {
try {
let appPlatform;
// #ifdef MP-WEIXIN
appPlatform = 'wechat'
// #endif
// #ifdef MP-ALIPAY
appPlatform = 'ali'
// #endif
// 调用接口获取广告内容
const res = await getCurrentAdvertisement({
appPlatform: 'wechat', // 微信平台
appPlatform: appPlatform, // 微信平台
appType: 'user', // 用户端
pictureLocation:'userProfile_banner'
})