广告点击添加

This commit is contained in:
谢宇宁
2026-09-15 22:40:36 +07:00
parent d2a6c648e1
commit c5e5ec17df
9 changed files with 28 additions and 13 deletions
+1 -3
View File
@@ -22,7 +22,6 @@ class AdsItem extends StatefulWidget {
final double? aspectRatio;
final AdShowType? showType;
final double borderRadius;
final int clickType; //0:应用 1:广告
final Widget? child; //自定义子视图(IM 广告用)
final VoidCallback? onTap; //点击附加回调(IM 广告已读上报用)
@@ -32,7 +31,6 @@ class AdsItem extends StatefulWidget {
this.aspectRatio,
this.showType,
this.borderRadius = 12,
this.clickType = 1,
this.child,
this.onTap,
});
@@ -46,7 +44,7 @@ class _AdsItemState extends State<AdsItem> {
void _onTap() {
pushToPageByLink(adInfo.href);
CommonService.adsClick(widget.clickType);
CommonService.adsClick(adInfo.id);
widget.onTap?.call();
}