Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
23d1a954
Commit
23d1a954
authored
Nov 26, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
367c12cb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
GravityEngineManager.kt
.../com/duben/infinitefunjia/manager/GravityEngineManager.kt
+12
-5
TrackManager.java
...n/java/com/duben/infinitefunjia/manager/TrackManager.java
+2
-2
TrackPresenter.java
...m/duben/infinitefunjia/mvp/presenters/TrackPresenter.java
+3
-2
No files found.
video/app/src/main/java/com/duben/infinitefunjia/manager/GravityEngineManager.kt
View file @
23d1a954
...
...
@@ -57,12 +57,19 @@ object GravityEngineManager {
override
fun
onSuccess
(
responseJson
:
JSONObject
?,
initializeBody
:
JSONObject
?)
{
//responseJson=={"nameValuePairs":{"token":"b10c4ce9-b40b-3f89-b442-237fe82e5efd"}}
responseJson
?.
let
{
val
json
=
JsonUtil
.
toJson
(
it
)
LogUtil
.
d
(
"mcg --> gravityEngineSDKInstance onSuccess=$json"
)
TrackManager
.
getInstance
().
ylclReport
(
json
)
}
var
json
=
""
var
json2
=
""
if
(
responseJson
!=
null
)
{
json
=
JsonUtil
.
toJson
(
responseJson
)
}
if
(
initializeBody
!=
null
)
{
json2
=
JsonUtil
.
toJson
(
initializeBody
)
}
LogUtil
.
d
(
"mcg --> gravityEngineSDKInstance onSuccess=$json"
)
LogUtil
.
d
(
"mcg --> gravityEngineSDKInstance onSuccess=$json2"
)
TrackManager
.
getInstance
().
ylclReport
(
json
,
json2
)
enableAutoTrack
(
gravityEngineSDKInstance
)
}
...
...
video/app/src/main/java/com/duben/infinitefunjia/manager/TrackManager.java
View file @
23d1a954
...
...
@@ -87,9 +87,9 @@ public class TrackManager {
}
}
public
void
ylclReport
(
String
vo
)
{
public
void
ylclReport
(
String
json1
,
String
json2
)
{
if
(
trackPresenter
!=
null
)
{
trackPresenter
.
ylclReport
(
vo
);
trackPresenter
.
ylclReport
(
json1
,
json2
);
}
}
}
video/app/src/main/java/com/duben/infinitefunjia/mvp/presenters/TrackPresenter.java
View file @
23d1a954
...
...
@@ -270,10 +270,11 @@ public class TrackPresenter extends BaseTrackPresenter {
});
}
public
void
ylclReport
(
String
json
)
{
public
void
ylclReport
(
String
json
1
,
String
json2
)
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
vo
.
put
(
"device"
,
new
DeviceUuidFactory
().
getDeviceUuid
());
vo
.
put
(
"param"
,
json
);
vo
.
put
(
"param"
,
json1
);
vo
.
put
(
"param2"
,
json2
);
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
ylclReport
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
Object
>>()
{
...
...
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