SDK相关的整理

This commit is contained in:
chen wei bo
2025-09-26 17:34:07 +08:00
parent ed525d9ed2
commit 361afaacf2
40 changed files with 713 additions and 4379 deletions
@@ -0,0 +1,34 @@
import { IAdSDK } from "../core/IAdSDK";
export class WxAdSDK implements IAdSDK {
init(cb?: Function): void {
console.log("微信广告初始化");
cb && cb();
}
// 展示激励视频广告
showRewardVideo(cb: (ok: boolean) => void): void {
console.log("展示微信激励广告");
cb(true);
}
// 展示插屏广告
showInterstitial(): void {
console.log("展示微信插屏广告");
}
// 展示 Banner 广告
showBanner(): void {
console.log("展示微信Banner广告");
}
// 隐藏 Banner 广告
hideBanner(): void {
console.log("隐藏微信Banner广告");
}
// 主动拉起分享
showShare(): void {
console.log("主动拉起分享");
}
}