Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
2b73755a
Commit
2b73755a
authored
Jan 15, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
珊瑚下载任务修改loginkey内容
parent
dcf4b919
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
CoralDownload.java
...main/java/com/mints/goodmoney/ad/tz_ad/CoralDownload.java
+9
-1
ShVideoAdManager.kt
...ain/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
+0
-1
Constant.kt
.../app/src/main/java/com/mints/goodmoney/common/Constant.kt
+1
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/tz_ad/CoralDownload.java
View file @
2b73755a
...
...
@@ -4,7 +4,9 @@ import androidx.annotation.Nullable;
import
com.mints.goodmoney.BuildConfig
;
import
com.mints.goodmoney.MintsApplication
;
import
com.mints.goodmoney.common.Constant
;
import
com.mints.goodmoney.manager.UserManager
;
import
com.mints.library.utils.json.JsonUtil
;
import
com.tz.sdk.coral.ad.CoralAD
;
import
com.tz.sdk.coral.callback.CoralADListener
;
import
com.tz.sdk.coral.callback.h5.DownloadProcess
;
...
...
@@ -46,7 +48,7 @@ public final class CoralDownload {
{
put
(
CoralAD
.
Key
.
TASK_TYPE
,
type
);
put
(
CoralAD
.
Key
.
ACCOUNT_ID
,
UserManager
.
getInstance
().
getUserID
());
put
(
CoralAD
.
Key
.
LOGIN_KEY
,
UserManager
.
getInstance
().
getTokenID
(
));
put
(
CoralAD
.
Key
.
LOGIN_KEY
,
JsonUtil
.
toJson
(
getAdMapVO
()
));
}
})
.
load
(
new
CoralADListener
()
{
...
...
@@ -239,4 +241,10 @@ public final class CoralDownload {
void
onGetDownloadProcess
(
DownloadProcess
downloadProcess
);
}
private
HashMap
<
String
,
Object
>
getAdMapVO
()
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
vo
.
put
(
"carrierType"
,
Constant
.
CARRIER_CPD
);
return
vo
;
}
}
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
View file @
2b73755a
...
...
@@ -207,7 +207,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
vo
[
"carrierType"
]
=
carrierType
vo
[
"adtype"
]
=
Constant
.
ADTYPE_VEDIO
vo
[
"tid"
]
=
MD5
.
GetMD5Code
(
System
.
currentTimeMillis
().
toString
()
+
UserManager
.
getInstance
().
userID
)
vo
[
"adsource"
]
=
Constant
.
AD_SOURCE_SH
vo
[
"ip"
]
=
ps
.
getString
(
Constant
.
CSJ_VEDIO_APPIP
,
""
)
!!
when
(
carrierType
)
{
Constant
.
CARRIER_VERSUS_VIDEO
->
vo
[
"coin"
]
=
curCoin
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/common/Constant.kt
View file @
2b73755a
...
...
@@ -139,7 +139,7 @@ object Constant {
const
val
AD_SOURCE_SDHZ
=
"SDHZ"
//闪电盒子
const
val
AD_SOURCE_FL
=
"FL"
//枫岚
const
val
AD_SOURCE_CSJFULL
=
"CSJFULL"
const
val
AD_SOURCE_SH
=
"CORAL"
//天卓
const
val
AD_SOURCE_SH
=
"CORAL"
//
珊瑚
天卓
// 调用事件 0 成功 1失败 2点击 3-有效展示 4-去重
const
val
EVENT_TYPE_ZERO
=
"0"
...
...
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