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
ea5373c6
Commit
ea5373c6
authored
Mar 14, 2024
by
dingjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
858e68c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
NovelGDTNotify.java
...a/com/lwby/marketing/notify/media/gdt/NovelGDTNotify.java
+8
-3
NovelJRTTNotify.java
...com/lwby/marketing/notify/media/jrtt/NovelJRTTNotify.java
+8
-3
No files found.
src/main/java/com/lwby/marketing/notify/media/gdt/NovelGDTNotify.java
View file @
ea5373c6
...
...
@@ -11,9 +11,11 @@ import com.lwby.marketing.notify.media.gdt.dto.UserId;
import
com.lwby.marketing.vo.ClientInfo
;
import
com.lwby.marketing.vo.DeliveryDeviceInfo
;
import
com.lwby.marketing.vo.NovelAction
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.Collections
;
@Slf4j
public
class
NovelGDTNotify
extends
MobileNotify
{
public
boolean
android
(
NovelAction
na
){
...
...
@@ -41,9 +43,12 @@ public class NovelGDTNotify extends MobileNotify {
String
userAction
=
JSONObject
.
toJSONString
(
dto
);
try
{
String
result
=
HttpUtil
.
post
(
sb
.
toString
(),
userAction
);
Integer
resultCode
=
(
Integer
)
JSON
.
parseObject
(
result
).
get
(
"code"
);
return
resultCode
==
0
;
//TODO;测试不执行
// String result = HttpUtil.post(sb.toString(), userAction);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
log
.
info
(
"Callback info:{}"
,
userAction
);
return
true
;
}
catch
(
Exception
e
)
{
return
false
;
}
...
...
src/main/java/com/lwby/marketing/notify/media/jrtt/NovelJRTTNotify.java
View file @
ea5373c6
...
...
@@ -8,7 +8,9 @@ import com.lwby.marketing.notify.media.jrtt.dto.JrttAttributeRequest;
import
com.lwby.marketing.vo.ClientInfo
;
import
com.lwby.marketing.vo.DeliveryDeviceInfo
;
import
com.lwby.marketing.vo.NovelAction
;
import
lombok.extern.slf4j.Slf4j
;
@Slf4j
public
class
NovelJRTTNotify
extends
MobileNotify
{
public
static
final
String
ATTRIBUTE_URL
=
"https://analytics.oceanengine.com/api/v2/conversion"
;
...
...
@@ -33,9 +35,12 @@ public class NovelJRTTNotify extends MobileNotify {
String
userJson
=
JSONObject
.
toJSONString
(
request
);
try
{
String
result
=
HttpUtil
.
post
(
ATTRIBUTE_URL
,
userJson
);
Integer
resultCode
=
(
Integer
)
JSON
.
parseObject
(
result
).
get
(
"code"
);
return
resultCode
==
0
;
//TODO;测试不执行
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
log
.
info
(
"Callback info:{}"
,
userJson
);
return
true
;
}
catch
(
Exception
e
)
{
return
false
;
}
...
...
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