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
f52f437f
Commit
f52f437f
authored
Oct 13, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
4fd3243f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
14 deletions
+23
-14
TrackManager.java
...main/java/com/duben/miniplaylet/manager/TrackManager.java
+9
-1
TrackPresenter.java
.../com/duben/miniplaylet/mvp/presenters/TrackPresenter.java
+4
-3
DrawCashFragment.kt
...om/duben/miniplaylet/ui/fragment/draw/DrawCashFragment.kt
+2
-2
ForegroundOrBackground.java
...a/com/duben/miniplaylet/utils/ForegroundOrBackground.java
+8
-8
No files found.
video/app/src/main/java/com/duben/miniplaylet/manager/TrackManager.java
View file @
f52f437f
package
com
.
duben
.
miniplaylet
.
manager
;
import
android.text.TextUtils
;
import
com.duben.miniplaylet.MintsApplication
;
import
com.duben.miniplaylet.mvp.model.VedioBean
;
import
com.duben.miniplaylet.mvp.presenters.TrackPresenter
;
...
...
@@ -92,7 +94,13 @@ public class TrackManager {
public
void
addCashoutReq
(
String
unitId
)
{
if
(
trackPresenter
!=
null
)
{
trackPresenter
.
riskinfo2
(
2
,
unitId
);
trackPresenter
.
riskinfo2
(
2
,
unitId
,
"ALIPAY"
);
}
}
public
void
addCashoutReq
(
String
unitId
,
String
payChannel
)
{
if
(
trackPresenter
!=
null
)
{
trackPresenter
.
riskinfo2
(
2
,
unitId
,
payChannel
);
}
}
}
...
...
video/app/src/main/java/com/duben/miniplaylet/mvp/presenters/TrackPresenter.java
View file @
f52f437f
...
...
@@ -184,7 +184,7 @@ public class TrackPresenter extends BaseTrackPresenter {
});
}
public
void
riskinfo2
(
int
eventid
,
String
unitId
)
{
public
void
riskinfo2
(
int
eventid
,
String
unitId
,
String
payChannel
)
{
DeviceInfo
deviceInfo
=
DeviceInfo
.
Companion
.
getInstance
();
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
...
...
@@ -229,7 +229,7 @@ public class TrackPresenter extends BaseTrackPresenter {
public
void
onNext
(
BaseResponse
<
RiskBean
>
baseResponse
)
{
try
{
if
(
baseResponse
.
getStatus
()
==
200
)
{
addCashoutReq
(
unitId
);
addCashoutReq
(
unitId
,
payChannel
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
@@ -424,9 +424,10 @@ public class TrackPresenter extends BaseTrackPresenter {
});
}
public
void
addCashoutReq
(
String
unitId
)
{
public
void
addCashoutReq
(
String
unitId
,
String
payChannel
)
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
vo
.
put
(
"unitId"
,
unitId
);
vo
.
put
(
"payChannel"
,
payChannel
);
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
addCashoutReq
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
...
...
video/app/src/main/java/com/duben/miniplaylet/ui/fragment/draw/DrawCashFragment.kt
View file @
f52f437f
...
...
@@ -251,7 +251,7 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView,
showAd
(
Constant
.
CARRIERTYPE_ONLY_SHOW
)
}
else
{
//发起提现
TrackManager
.
getInstance
().
addCashoutReq
(
currentDrawInfo
?.
unitId
)
TrackManager
.
getInstance
().
addCashoutReq
(
currentDrawInfo
?.
unitId
,
payChannel
)
showToast
(
"发起提现成功"
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
...
...
@@ -350,7 +350,7 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView,
private
fun
adCloseNext
(
carrierType
:
String
)
{
when
(
carrierType
)
{
Constant
.
CARRIERTYPE_ONLY_SHOW
->
{
TrackManager
.
getInstance
().
addCashoutReq
(
currentDrawInfo
?.
unitId
)
TrackManager
.
getInstance
().
addCashoutReq
(
currentDrawInfo
?.
unitId
,
payChannel
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
if
(!
isAdded
)
return
@postDelayed
...
...
video/app/src/main/java/com/duben/miniplaylet/utils/ForegroundOrBackground.java
View file @
f52f437f
...
...
@@ -101,14 +101,14 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// System.out.println("mcg -->>>>>:: diffInSeconds=" + diffInSeconds + " adSuccessStatus=" + SplashManager.INSTANCE.isSuccessStatus());
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
//支付宝授权时不弹
//
if (AppConfig.alipayBackFalg) {
//
tempAlipay = tempAlipay + 1;
//
if (tempAlipay >= 2) {
//
AppConfig.alipayBackFalg = false;
//
}
//
} else {
//
activity.startActivity(new Intent(activity, SplashBackActivity.class));
//
}
if
(
AppConfig
.
alipayBackFalg
)
{
tempAlipay
=
tempAlipay
+
1
;
if
(
tempAlipay
>=
2
)
{
AppConfig
.
alipayBackFalg
=
false
;
}
}
else
{
activity
.
startActivity
(
new
Intent
(
activity
,
SplashBackActivity
.
class
));
}
// }
}
count
++;
...
...
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