Skip to content

Commit

Permalink
fix(track): click monitor url add __CAID__ macro
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Oct 10, 2023
1 parent d56bc19 commit 33e3221
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions marketing-api/api/track/click.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var DEFAULT_CLICK_FIELDS = []string{
"android_id",
"oaid",
"os",
"caid",
"mac",
"mac1",
"ip",
Expand All @@ -34,6 +35,7 @@ var DEFAULT_CLICK_FIELDS = []string{
"model",
"union_site",
"caid1",
"caid2",
}

// Click 生成击检测链接
Expand Down Expand Up @@ -73,6 +75,8 @@ func Click(baseUrl string, fields []string, adVersion model.AdVersion) string {
values.Set("android_id", "__ANDROIDID__")
case "oaid":
values.Set("oaid", "__OAID__")
case "caid":
values.Set("caid", "__CAID__")
case "os":
values.Set("os", "__OS__")
case "mac":
Expand Down

0 comments on commit 33e3221

Please sign in to comment.