Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
appzxhy
Commits
35c16a80
Commit
35c16a80
authored
Jul 03, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[归因]归因
parent
841943c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
+14
-18
InstallHelper.kt
...main/java/com/rgt/superr/business/helper/InstallHelper.kt
+14
-18
No files found.
app/src/main/java/com/rgt/superr/business/helper/InstallHelper.kt
View file @
35c16a80
...
...
@@ -55,6 +55,19 @@ object InstallHelps {
EventUtils
.
event
(
"install_referrer"
,
ext
=
obj
)
}
fun
setInstallSource
(
response
:
ReferrerDetails
)
{
installReferrer
=
response
.
installReferrer
installSource
=
if
(
listOf
(
"gclid"
,
"facebook"
,
"instagram"
).
all
{
!
response
.
installReferrer
.
contains
(
it
,
true
)
}
)
{
"origin"
}
else
{
"channel"
}
}
fun
init
(
requestCfg
:
()
->
Unit
)
{
...
...
@@ -72,25 +85,8 @@ object InstallHelps {
InstallReferrerClient
.
InstallReferrerResponse
.
OK
->
{
val
response
=
referrerClient
.
installReferrer
installReferrer
=
response
.
installReferrer
setInstallSource
(
response
)
eventInstallReferrer
(
response
)
installSource
=
if
(
listOf
(
"gclid"
,
"facebook"
,
"instagram"
).
all
{
!
response
.
installReferrer
.
contains
(
it
,
true
)
}
)
{
//自然用户
if
(
BuildConfig
.
DEBUG
)
{
"channel"
}
else
{
"origin"
}
}
else
{
"channel"
}
requestCfg
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment