Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_aiyuebao
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_aiyuebao
Commits
a0f834c3
Commit
a0f834c3
authored
May 10, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
好友邀请逻辑修改
parent
4357506d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
202 additions
and
144 deletions
+202
-144
WenshuApplication.java
app/src/main/java/com/wenshu/aiyuebao/WenshuApplication.java
+6
-11
VideoAdingManager.java
.../java/com/wenshu/aiyuebao/ad/video/VideoAdingManager.java
+18
-2
AppConfig.java
app/src/main/java/com/wenshu/aiyuebao/common/AppConfig.java
+0
-3
TtCsjAdManager.java
...main/java/com/wenshu/aiyuebao/manager/TtCsjAdManager.java
+1
-1
CashoutChallengeBean.java
...a/com/wenshu/aiyuebao/mvp/model/CashoutChallengeBean.java
+3
-2
FriendsPresenter.kt
...va/com/wenshu/aiyuebao/mvp/presenters/FriendsPresenter.kt
+174
-125
No files found.
app/src/main/java/com/wenshu/aiyuebao/WenshuApplication.java
View file @
a0f834c3
...
...
@@ -11,12 +11,16 @@ import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import
androidx.multidex.MultiDexApplication
;
import
com.hjq.toast.ToastUtils
;
import
com.orhanobut.logger.AndroidLogAdapter
;
import
com.orhanobut.logger.FormatStrategy
;
import
com.orhanobut.logger.Logger
;
import
com.orhanobut.logger.PrettyFormatStrategy
;
import
com.umeng.analytics.MobclickAgent
;
import
com.umeng.commonsdk.UMConfigure
;
import
com.wenshu.aiyuebao.common.Constant
;
import
com.wenshu.aiyuebao.manager.KsManager
;
import
com.wenshu.aiyuebao.manager.LiebaoManager
;
import
com.wenshu.aiyuebao.manager.MhManager
;
import
com.wenshu.aiyuebao.manager.MiitHelper
;
import
com.wenshu.aiyuebao.manager.RsNewsManager
;
import
com.wenshu.aiyuebao.manager.TtCsjAdManager
;
import
com.wenshu.aiyuebao.manager.TzManager
;
import
com.wenshu.aiyuebao.manager.WnManager
;
...
...
@@ -27,12 +31,6 @@ import com.wenshu.aiyuebao.utils.ForegroundOrBackground;
import
com.wenshu.aiyuebao.utils.LogUtil
;
import
com.wenshu.aiyuebao.utils.SystemUtils
;
import
com.wenshu.library.utils.CommonUtils
;
import
com.orhanobut.logger.AndroidLogAdapter
;
import
com.orhanobut.logger.FormatStrategy
;
import
com.orhanobut.logger.Logger
;
import
com.orhanobut.logger.PrettyFormatStrategy
;
import
com.umeng.analytics.MobclickAgent
;
import
com.umeng.commonsdk.UMConfigure
;
import
com.ximalaya.ting.android.opensdk.constants.ConstantsOpenSdk
;
import
com.ximalaya.ting.android.opensdk.datatrasfer.CommonRequest
;
import
com.ximalaya.ting.android.opensdk.player.service.XmPlayerConfig
;
...
...
@@ -136,9 +134,6 @@ public class WenshuApplication extends MultiDexApplication {
// 瑞狮新闻
// RsNewsManager.INSTANCE.init(this);
// 猎豹游戏初始化
// LiebaoManager.getInstance().initCmGameSdk();
// 喜马拉雅
initXmly
();
...
...
app/src/main/java/com/wenshu/aiyuebao/ad/video/VideoAdingManager.java
View file @
a0f834c3
...
...
@@ -344,8 +344,17 @@ public class VideoAdingManager {
int
wnAdCount
=
AppConfig
.
wnVideoAdCount
;
int
flVideoAdCount
=
AppConfig
.
flVideoAdCount
;
int
tzVideoAdCount
=
AppConfig
.
shVideoAdCount
;
if
(
ylhAdCount
<=
0
&&
csjVideoAdCount
<=
0
&&
wnAdCount
<=
0
&&
flVideoAdCount
<=
0
&&
tzVideoAdCount
<=
0
)
{
int
ksVideoAdCount
=
AppConfig
.
ksVideoAdCount
;
int
csjFullVedioAdCount
=
AppConfig
.
csjFullVedioAdCount
;
if
(
ylhAdCount
<=
0
&&
csjVideoAdCount
<=
0
&&
wnAdCount
<=
0
&&
flVideoAdCount
<=
0
&&
tzVideoAdCount
<=
0
&&
csjFullVedioAdCount
<=
0
&&
ksVideoAdCount
<=
0
)
{
// showToast("今日视频已看完,请明天再来吧");
return
true
;
}
return
false
;
...
...
@@ -438,6 +447,13 @@ public class VideoAdingManager {
* @param bean
*/
private
void
loadAdVideo
(
String
videoAdType
,
VideoAdingBean
bean
)
{
if
(
TextUtils
.
isEmpty
(
videoAdType
))
{
if
(
videoAdingListener
!=
null
)
{
videoAdingListener
.
videoAdingListenerError
(
bean
.
getCarrierType
());
}
return
;
}
try
{
if
(
TextUtils
.
equals
(
videoAdType
,
Constant
.
YLH_VEDIO_AD
))
{
// 优量汇
...
...
app/src/main/java/com/wenshu/aiyuebao/common/AppConfig.java
View file @
a0f834c3
...
...
@@ -76,9 +76,6 @@ public class AppConfig {
* wnVideo 剩余广告播放数
*/
public
static
int
wnVideoAdCount
=
0
;
/**
* flVideo 剩余广告播放数
*/
/**
* csjFull 剩余广告播放数
*/
...
...
app/src/main/java/com/wenshu/aiyuebao/manager/TtCsjAdManager.java
View file @
a0f834c3
...
...
@@ -46,7 +46,7 @@ public class TtCsjAdManager {
/*全屏视频*/
public
static
String
TT_AD_FULLVEDIO_ALL
=
"946076470"
;
// 通用
/*信息流*/
public
static
String
TT_AD_NATIVEEXPRESS_XMLY
=
"9460
76473
"
;
//喜马拉雅信息流
public
static
String
TT_AD_NATIVEEXPRESS_XMLY
=
"9460
87036
"
;
//喜马拉雅信息流
public
static
String
TT_AD_NATIVEEXPRESS_AWARD
=
"946076481"
;
//信息流弹窗
public
static
String
TT_AD_NATIVEEXPRESS_WALK
=
"946076481"
;
//走路
public
static
String
TT_AD_NATIVEEXPRESS_WATER
=
"946076481"
;
//喝水
...
...
app/src/main/java/com/wenshu/aiyuebao/mvp/model/CashoutChallengeBean.java
View file @
a0f834c3
package
com
.
wenshu
.
aiyuebao
.
mvp
.
model
;
import
java.io.Serializable
;
import
java.util.List
;
/**
...
...
@@ -7,7 +8,7 @@ import java.util.List;
* @date 2021/3/22
* @des
*/
public
class
CashoutChallengeBean
{
public
class
CashoutChallengeBean
implements
Serializable
{
/**
* canRewardCoin : 0
...
...
@@ -43,7 +44,7 @@ public class CashoutChallengeBean {
this
.
complete
=
complete
;
}
public
static
class
ListDTO
{
public
class
ListDTO
implements
Serializable
{
public
Integer
getNeedCount
()
{
return
needCount
;
}
...
...
app/src/main/java/com/wenshu/aiyuebao/mvp/presenters/FriendsPresenter.kt
View file @
a0f834c3
This diff is collapsed.
Click to expand it.
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