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
df2c2ab5
Commit
df2c2ab5
authored
Sep 25, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8a4c3b5d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
20 deletions
+75
-20
TrackPresenter.java
...a/com/duben/dayplaylet/mvp/presenters/TrackPresenter.java
+4
-1
LoanService.java
...p/src/main/java/com/duben/dayplaylet/net/LoanService.java
+1
-1
NineActivity.kt
...in/java/com/duben/dayplaylet/ui/activitys/NineActivity.kt
+20
-0
MainFragment.kt
...ain/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
+14
-14
RedpkgFragment.kt
...n/java/com/duben/dayplaylet/ui/fragment/RedpkgFragment.kt
+19
-0
DrawCashFragment.kt
...com/duben/dayplaylet/ui/fragment/draw/DrawCashFragment.kt
+17
-4
No files found.
video/app/src/main/java/com/duben/dayplaylet/mvp/presenters/TrackPresenter.java
View file @
df2c2ab5
...
...
@@ -15,6 +15,7 @@ import com.duben.dayplaylet.mvp.model.RiskBean;
import
com.duben.dayplaylet.ui.activitys.HintActivity
;
import
com.duben.dayplaylet.utils.AccessibilityUtils
;
import
com.duben.dayplaylet.utils.ForegroundOrBackground
;
import
com.duben.dayplaylet.utils.HitChanceKeeper
;
import
com.duben.dayplaylet.utils.ToastUtil
;
import
com.duben.dayplaylet.utils.rxutil.CommonRxTask
;
import
com.duben.dayplaylet.utils.rxutil.RxjavaUtil
;
...
...
@@ -412,7 +413,9 @@ public class TrackPresenter extends BaseTrackPresenter {
AppConfig
.
awardYuanbao
=
data
.
get
(
"di"
).
getAsInt
();
}
if
(
HitChanceKeeper
.
INSTANCE
.
isHitChance
(
AppConfig
.
riskPercentage
))
{
riskinfo
(
3
);
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
video/app/src/main/java/com/duben/dayplaylet/net/LoanService.java
View file @
df2c2ab5
...
...
@@ -320,7 +320,7 @@ public interface LoanService {
*
* @return
*/
@POST
(
"api/riskinfo/save
2
"
)
@POST
(
"api/riskinfo/save"
)
Observable
<
BaseResponse
<
RiskBean
>>
riskinfo2
(
@Body
Map
<
String
,
Object
>
vo
);
/**
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/activitys/NineActivity.kt
View file @
df2c2ab5
...
...
@@ -15,7 +15,9 @@ import com.duben.dayplaylet.ad.AdStatusListener
import
com.duben.dayplaylet.ad.NoPreAdManager
import
com.duben.dayplaylet.ad.half.HalfScreenManager
import
com.duben.dayplaylet.common.Constant
import
com.duben.dayplaylet.manager.AlipayAuthManager
import
com.duben.dayplaylet.manager.TrackManager
import
com.duben.dayplaylet.manager.UserManager
import
com.duben.dayplaylet.ui.activitys.base.BaseActivity
import
com.duben.dayplaylet.ui.widgets.DialogListener
import
com.duben.dayplaylet.ui.widgets.WithDrawSucDialog
...
...
@@ -78,6 +80,24 @@ class NineActivity : BaseActivity(), View.OnClickListener {
finish
()
}
R
.
id
.
iv_nine_next
->
{
if
(!
UserManager
.
getInstance
().
alipaySet
)
{
// 去授权
showToast
(
"发起支付宝授权.."
)
AlipayAuthManager
.
authV2
(
this
@NineActivity
,
object
:
AlipayAuthManager
.
AuthListener
{
override
fun
authSuccess
()
{
showToast
(
"支付宝授权成功"
)
}
override
fun
authFail
(
resultStatus
:
String
)
{
showToast
(
"支付宝授权失败 "
+
resultStatus
)
}
})
return
}
HalfScreenManager
.
getInstance
().
preLoadAd
(
this
)
showAd
(
Constant
.
CARRIERTYPE_SING_OVER
)
// adCloseNext("")
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
View file @
df2c2ab5
...
...
@@ -508,20 +508,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
}
R
.
id
.
tv_sign_withdraw
->
{
userInfo
?.
let
{
if
(
it
.
isAlipaySet
)
{
dialog
?.
dismiss
()
val
bundle
=
Bundle
()
if
(
signMsg
!=
null
)
{
val
signWeekCashArr
=
signMsg
!!
.
signWeekCashArr
val
cash
=
signWeekCashArr
[
signMsg
!!
.
signDay
-
1
]
bundle
.
putString
(
LoadingActivity
.
TEXT
,
"${cash}元现金马上到账"
)
}
readyGo
(
LoadingActivity
::
class
.
java
,
bundle
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
showAd
(
Constant
.
CARRIERTYPE_SIGN
)
},
2500
)
}
else
{
if
(!
it
.
isAlipaySet
)
{
showToast
(
"发起支付宝授权.."
)
AlipayAuthManager
.
authV2
(
requireActivity
(),
...
...
@@ -535,7 +522,20 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
showToast
(
"支付宝授权失败 "
+
resultStatus
)
}
})
return
@let
}
dialog
?.
dismiss
()
val
bundle
=
Bundle
()
if
(
signMsg
!=
null
)
{
val
signWeekCashArr
=
signMsg
!!
.
signWeekCashArr
val
cash
=
signWeekCashArr
[
signMsg
!!
.
signDay
-
1
]
bundle
.
putString
(
LoadingActivity
.
TEXT
,
"${cash}元现金马上到账"
)
}
readyGo
(
LoadingActivity
::
class
.
java
,
bundle
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
showAd
(
Constant
.
CARRIERTYPE_SIGN
)
},
2500
)
}
}
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/RedpkgFragment.kt
View file @
df2c2ab5
...
...
@@ -18,6 +18,7 @@ import com.duben.dayplaylet.ad.NoPreAdManager
import
com.duben.dayplaylet.ad.half.HalfScreenManager
import
com.duben.dayplaylet.common.AppConfig
import
com.duben.dayplaylet.common.Constant
import
com.duben.dayplaylet.manager.AlipayAuthManager
import
com.duben.dayplaylet.manager.TrackManager
import
com.duben.dayplaylet.manager.UserManager
import
com.duben.dayplaylet.mvp.model.HongbaoBean
...
...
@@ -295,6 +296,24 @@ class RedpkgFragment : LazyLoadBaseFragment(), View.OnClickListener, RedpkgView
}
override
fun
rdHongbaoClickSuc
(
isCash
:
Boolean
,
cash
:
Double
,
unitId
:
String
)
{
if
(!
UserManager
.
getInstance
().
alipaySet
)
{
// 去授权
showToast
(
"发起支付宝授权.."
)
AlipayAuthManager
.
authV2
(
requireActivity
(),
object
:
AlipayAuthManager
.
AuthListener
{
override
fun
authSuccess
()
{
showToast
(
"支付宝授权成功"
)
}
override
fun
authFail
(
resultStatus
:
String
)
{
showToast
(
"支付宝授权失败 "
+
resultStatus
)
}
})
return
}
if
(!
isCash
)
{
val
bundle
=
Bundle
()
bundle
.
putString
(
LoadingActivity
.
TEXT
,
"正在为您发放奖励.."
)
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/draw/DrawCashFragment.kt
View file @
df2c2ab5
...
...
@@ -16,6 +16,7 @@ import com.duben.dayplaylet.ad.AdStatusListener
import
com.duben.dayplaylet.ad.NoPreAdManager
import
com.duben.dayplaylet.common.AppConfig
import
com.duben.dayplaylet.common.Constant
import
com.duben.dayplaylet.manager.AlipayAuthManager
import
com.duben.dayplaylet.manager.TrackManager
import
com.duben.dayplaylet.mvp.model.DrawInfoBean
import
com.duben.dayplaylet.mvp.presenters.DrawCashPresenter
...
...
@@ -187,10 +188,22 @@ class DrawCashFragment : LazyLoadBaseFragment(), DrawCashView, DrawCashAdapter.O
}
// 2、授权支付宝
// if (!alipayStatus) {
// // 去授权
// return
// }
if
(!
alipayStatus
)
{
// 去授权
showToast
(
"发起支付宝授权.."
)
AlipayAuthManager
.
authV2
(
requireActivity
(),
object
:
AlipayAuthManager
.
AuthListener
{
override
fun
authSuccess
()
{
showToast
(
"支付宝授权成功"
)
}
override
fun
authFail
(
resultStatus
:
String
)
{
showToast
(
"支付宝授权失败 "
+
resultStatus
)
}
})
return
}
/**
* 21 任务弹框,
...
...
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