广告点击添加

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
+5 -4
View File
@@ -225,11 +225,12 @@ class CommonService {
return result.isSuccess ? result.data : null;
}
//广告点击统计 广告类型 0:应用 1:广告
static Future<bool> adsClick(int? type) async {
/// 广告点击日志:[id] 广告 id(后端必填,空就不报);type 固定传 0(普通广告)
static Future<bool> adsClick(String? id) async {
if (id == null || id.isEmpty) return false;
final result = await httpManager.fetchResponseByPOST(
'/ads/click/stat',
param: {'type': type},
'/ads/click',
param: {'id': id, 'type': 0},
);
return result.isSuccess;
}