Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
marketing
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dingjy
marketing
Commits
5ba5ece1
Commit
5ba5ece1
authored
Apr 12, 2024
by
宋新宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击
parent
c012ce7b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
8 deletions
+127
-8
ClickbackService.java
.../java/com/lwby/marketing/controller/ClickbackService.java
+112
-8
ServiceHelper.java
...ain/java/com/lwby/marketing/controller/ServiceHelper.java
+15
-0
No files found.
src/main/java/com/lwby/marketing/controller/ClickbackService.java
View file @
5ba5ece1
This diff is collapsed.
Click to expand it.
src/main/java/com/lwby/marketing/controller/ServiceHelper.java
View file @
5ba5ece1
package
com
.
lwby
.
marketing
.
controller
;
import
cn.hutool.crypto.SecureUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
java.io.UnsupportedEncodingException
;
...
...
@@ -25,4 +26,18 @@ public class ServiceHelper {
return
null
;
}
}
public
String
assembleKey
(
String
deviceId
,
ClickbackService
.
DeviceType
type
)
{
switch
(
type
)
{
case
IMEI:
case
OAID:
case
IDFA:
return
deviceId
;
case
IP_UA:
case
IP_MODEL:
case
IP:
return
SecureUtil
.
md5
(
deviceId
);
}
return
null
;
}
}
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