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
2f0cdd75
Commit
2f0cdd75
authored
Apr 25, 2024
by
宋新宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上报切换 短剧app
parent
d5168b1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
StoreVideoAppAttributionFlow.java
...ing/att/videoapp/handle/StoreVideoAppAttributionFlow.java
+1
-1
UploadVideoAppCallFlow.java
...marketing/att/videoapp/handle/UploadVideoAppCallFlow.java
+1
-1
VideoAppJRTTNotify.java
.../lwby/marketing/notify/media/jrtt/VideoAppJRTTNotify.java
+12
-14
No files found.
src/main/java/com/lwby/marketing/att/videoapp/handle/StoreVideoAppAttributionFlow.java
View file @
2f0cdd75
...
...
@@ -23,7 +23,7 @@ public class StoreVideoAppAttributionFlow extends NodeFlow<NovelAction> {
//商店判断30天活跃,不在活跃天数内,发BI
String
aliveDeviceKey
=
up
.
buildKey
(
action
.
getPlatformId
(),
action
.
getDeviceId
());
if
(!
up
.
existsIsAlive
(
aliveDeviceKey
))
{
up
.
notifyResult
(
action
,
"ocpc_result
_test
"
,
AttributionStatus
.
STORE_CALLBACK
);
up
.
notifyResult
(
action
,
"ocpc_result"
,
AttributionStatus
.
STORE_CALLBACK
);
}
}
action
.
stop
(
true
);
//结束后面所有执行流程
...
...
src/main/java/com/lwby/marketing/att/videoapp/handle/UploadVideoAppCallFlow.java
View file @
2f0cdd75
...
...
@@ -24,7 +24,7 @@ public class UploadVideoAppCallFlow extends NodeFlow<NovelAction> {
boolean
success
=
action
.
getMedia
().
notify
(
action
);
if
(
success
)
{
up
.
notifyResult
(
action
,
type
.
getTopic
()
+
"_test"
,
type
.
getStatus
());
up
.
notifyResult
(
action
,
type
.
getTopic
(),
type
.
getStatus
());
up
.
set
(
up
.
getFirstCheckerKey
(
action
),
up
.
getExpire
(
action
),
"1"
);
}
}
...
...
src/main/java/com/lwby/marketing/notify/media/jrtt/VideoAppJRTTNotify.java
View file @
2f0cdd75
...
...
@@ -58,14 +58,13 @@ public class VideoAppJRTTNotify extends MobileNotify {
String
userJson
=
JSONObject
.
toJSONString
(
request
);
try
{
//TODO;测试不执行
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
String
result
=
HttpUtil
.
post
(
ATTRIBUTE_URL
,
userJson
);
Integer
resultCode
=
(
Integer
)
JSON
.
parseObject
(
result
).
get
(
"code"
);
log
.
info
(
"VideoAppJRTTNotify android Callback info:{}"
,
userJson
);
//
if (Objects.equals(na.getType(),0)) {
//
sendAutoAttribute(ci,ddi,uploadAndroidUrl);
//
}
return
true
;
if
(
Objects
.
equals
(
na
.
getType
(),
0
))
{
sendAutoAttribute
(
ci
,
ddi
,
uploadAndroidUrl
);
}
return
resultCode
==
0
;
}
catch
(
Exception
e
)
{
return
false
;
}
...
...
@@ -92,14 +91,13 @@ public class VideoAppJRTTNotify extends MobileNotify {
String
userJson
=
JSONObject
.
toJSONString
(
request
);
try
{
//TODO;测试不执行
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
String
result
=
HttpUtil
.
post
(
ATTRIBUTE_URL
,
userJson
);
Integer
resultCode
=
(
Integer
)
JSON
.
parseObject
(
result
).
get
(
"code"
);
log
.
info
(
"VideoAppJRTTNotify ios Callback info:{}"
,
userJson
);
//
if (Objects.equals(na.getType(),0)) {
//
sendAutoAttribute(ci,ddi,uploadIosUrl);
//
}
return
true
;
if
(
Objects
.
equals
(
na
.
getType
(),
0
))
{
sendAutoAttribute
(
ci
,
ddi
,
uploadIosUrl
);
}
return
resultCode
==
0
;
}
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