From 642182fee95b0fee91f2615e9ee7c99636268794 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Thu, 12 Sep 2024 16:56:25 +0800 Subject: [PATCH] ipv6 --- unify/ad_sdk.go | 1 + unify/ad_type.go | 1 + 2 files changed, 2 insertions(+) diff --git a/unify/ad_sdk.go b/unify/ad_sdk.go index d6f0191..40c3d8c 100644 --- a/unify/ad_sdk.go +++ b/unify/ad_sdk.go @@ -109,6 +109,7 @@ func (s *Sdk) Match(c *Request) (*Result, error) { params.Add("os", strings.ToLower(c.Os)) params.Add("ip", c.Ip) + params.Add("ipv6", c.Ipv6) params.Add("ua", c.Ua) params.Add("model", c.Model) params.Add("brand", c.Brand) diff --git a/unify/ad_type.go b/unify/ad_type.go index b919190..425369d 100644 --- a/unify/ad_type.go +++ b/unify/ad_type.go @@ -15,6 +15,7 @@ type Request struct { Version string //安装包版本 Os string //手机系统类别 android、ioss Ip string //客户端的外网ip + Ipv6 string //客户端的外网ipv6 Ua string //客户端的user-agent Brand string // 客户端手机品牌 Model string //客户端的手机型号,如:NOH-AN00