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
6194a20b
Commit
6194a20b
authored
Jun 04, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8db8efca
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
18 deletions
+35
-18
ChannelManager.kt
...c/main/java/com/mints/goodmoney/manager/ChannelManager.kt
+0
-1
CsjGroMoreManager.kt
...ain/java/com/mints/goodmoney/manager/CsjGroMoreManager.kt
+2
-1
AdcodeBean.java
...c/main/java/com/mints/goodmoney/mvp/model/AdcodeBean.java
+0
-16
GroAdcodeBean.java
...ain/java/com/mints/goodmoney/mvp/model/GroAdcodeBean.java
+26
-0
UserTaskMsgBean.java
...n/java/com/mints/goodmoney/mvp/model/UserTaskMsgBean.java
+5
-0
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+1
-0
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+1
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/ChannelManager.kt
View file @
6194a20b
...
@@ -15,6 +15,5 @@ object ChannelManager {
...
@@ -15,6 +15,5 @@ object ChannelManager {
fun
updataCodeIdForRegisterChannel
(
idBean
:
AdcodeBean
?)
{
fun
updataCodeIdForRegisterChannel
(
idBean
:
AdcodeBean
?)
{
TtCsjAdManager
.
updataIdByChannel
(
idBean
)
TtCsjAdManager
.
updataIdByChannel
(
idBean
)
YlhAdManager
.
updataIdByChannel
(
idBean
)
YlhAdManager
.
updataIdByChannel
(
idBean
)
CsjGroMoreManager
.
updataIdByChannel
(
idBean
)
}
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/CsjGroMoreManager.kt
View file @
6194a20b
...
@@ -3,6 +3,7 @@ package com.mints.goodmoney.manager
...
@@ -3,6 +3,7 @@ package com.mints.goodmoney.manager
import
android.text.TextUtils
import
android.text.TextUtils
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.mvp.model.AdcodeBean
import
com.mints.goodmoney.mvp.model.AdcodeBean
import
com.mints.goodmoney.mvp.model.GroAdcodeBean
/**
/**
...
@@ -21,7 +22,7 @@ object CsjGroMoreManager {
...
@@ -21,7 +22,7 @@ object CsjGroMoreManager {
/**
/**
* 更新代码位
* 更新代码位
*/
*/
fun
updataIdByChannel
(
idBean
:
AdcodeBean
?)
{
fun
updataIdByChannel
(
idBean
:
Gro
AdcodeBean
?)
{
// 渠道对象不为空
// 渠道对象不为空
if
(
idBean
!=
null
)
{
if
(
idBean
!=
null
)
{
if
(!
TextUtils
.
isEmpty
(
idBean
.
groExpress
))
{
if
(!
TextUtils
.
isEmpty
(
idBean
.
groExpress
))
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/model/AdcodeBean.java
View file @
6194a20b
...
@@ -16,10 +16,6 @@ public class AdcodeBean implements Serializable {
...
@@ -16,10 +16,6 @@ public class AdcodeBean implements Serializable {
private
String
ylhv2
;
//激励
private
String
ylhv2
;
//激励
private
String
key
;
private
String
key
;
private
String
groExpress
;
private
String
groSplash
;
private
String
groVideo
;
public
String
getCsjv1
()
{
public
String
getCsjv1
()
{
return
csjv1
;
return
csjv1
;
...
@@ -45,18 +41,6 @@ public class AdcodeBean implements Serializable {
...
@@ -45,18 +41,6 @@ public class AdcodeBean implements Serializable {
return
ylhv2
;
return
ylhv2
;
}
}
public
String
getGroExpress
()
{
return
groExpress
;
}
public
String
getGroSplash
()
{
return
groSplash
;
}
public
String
getGroVideo
()
{
return
groVideo
;
}
public
String
getKey
()
{
public
String
getKey
()
{
return
key
;
return
key
;
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/model/GroAdcodeBean.java
0 → 100644
View file @
6194a20b
package
com
.
mints
.
goodmoney
.
mvp
.
model
;
import
java.io.Serializable
;
/**
* 用户渠道对应代码位
*/
public
class
GroAdcodeBean
implements
Serializable
{
private
String
groExpress
;
private
String
groSplash
;
private
String
groVideo
;
public
String
getGroExpress
()
{
return
groExpress
;
}
public
String
getGroSplash
()
{
return
groSplash
;
}
public
String
getGroVideo
()
{
return
groVideo
;
}
}
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/model/UserTaskMsgBean.java
View file @
6194a20b
...
@@ -12,6 +12,7 @@ public class UserTaskMsgBean implements Serializable {
...
@@ -12,6 +12,7 @@ public class UserTaskMsgBean implements Serializable {
private
BlessingBigMsgBean
blessingBigMsg
;
private
BlessingBigMsgBean
blessingBigMsg
;
private
UserRiskAppsBean
userRiskApps
;
private
UserRiskAppsBean
userRiskApps
;
private
AdcodeBean
adcode_v1
=
null
;
private
AdcodeBean
adcode_v1
=
null
;
private
GroAdcodeBean
gromoreAdcodes
=
null
;
private
FlowAdRulesBean
flowAdRules
;
private
FlowAdRulesBean
flowAdRules
;
private
HighRatePlanBean
highRatePlan
;
private
HighRatePlanBean
highRatePlan
;
...
@@ -141,6 +142,10 @@ public class UserTaskMsgBean implements Serializable {
...
@@ -141,6 +142,10 @@ public class UserTaskMsgBean implements Serializable {
return
highRatePlan
;
return
highRatePlan
;
}
}
public
GroAdcodeBean
getGromoreAdcodes
()
{
return
gromoreAdcodes
;
}
public
void
setHighRatePlan
(
HighRatePlanBean
highRatePlan
)
{
public
void
setHighRatePlan
(
HighRatePlanBean
highRatePlan
)
{
this
.
highRatePlan
=
highRatePlan
;
this
.
highRatePlan
=
highRatePlan
;
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
6194a20b
...
@@ -248,6 +248,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -248,6 +248,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
AppConfig
.
user_channel_ad
=
data
.
adcode
.
key
AppConfig
.
user_channel_ad
=
data
.
adcode
.
key
}
}
ChannelManager
.
updataCodeIdForRegisterChannel
(
data
.
adcode
)
ChannelManager
.
updataCodeIdForRegisterChannel
(
data
.
adcode
)
CsjGroMoreManager
.
updataIdByChannel
(
data
.
gromoreAdcodes
)
// 新人福利 放到个人中心展示 防止首页红包转动异常
// 新人福利 放到个人中心展示 防止首页红包转动异常
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
6194a20b
...
@@ -355,6 +355,7 @@ class MyFragment : BaseFragment(),
...
@@ -355,6 +355,7 @@ class MyFragment : BaseFragment(),
AppConfig
.
user_channel_ad
=
data
.
adcode
.
key
AppConfig
.
user_channel_ad
=
data
.
adcode
.
key
}
}
ChannelManager
.
updataCodeIdForRegisterChannel
(
data
.
adcode
)
ChannelManager
.
updataCodeIdForRegisterChannel
(
data
.
adcode
)
CsjGroMoreManager
.
updataIdByChannel
(
data
.
gromoreAdcodes
)
// 是否上报点击广告
// 是否上报点击广告
AppConfig
.
needReportClickAdEvent
=
data
.
isNeedReportClickAdEvent
AppConfig
.
needReportClickAdEvent
=
data
.
isNeedReportClickAdEvent
...
...
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