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
2cdcb365
Commit
2cdcb365
authored
Oct 13, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
e974d479
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
MintsApplication.java
...src/main/java/com/duben/miniplaylet/MintsApplication.java
+3
-0
DrawCashPresenter.kt
...com/duben/miniplaylet/mvp/presenters/DrawCashPresenter.kt
+1
-1
DrawCashView.kt
...main/java/com/duben/miniplaylet/mvp/views/DrawCashView.kt
+1
-0
DrawCashFragment.kt
...om/duben/miniplaylet/ui/fragment/draw/DrawCashFragment.kt
+12
-0
No files found.
video/app/src/main/java/com/duben/miniplaylet/MintsApplication.java
View file @
2cdcb365
...
@@ -15,6 +15,7 @@ import com.downloader.PRDownloaderConfig;
...
@@ -15,6 +15,7 @@ import com.downloader.PRDownloaderConfig;
import
com.duben.miniplaylet.ad.TTAdManagerHolder
;
import
com.duben.miniplaylet.ad.TTAdManagerHolder
;
import
com.duben.miniplaylet.common.Constant
;
import
com.duben.miniplaylet.common.Constant
;
import
com.duben.miniplaylet.manager.MintsSign
;
import
com.duben.miniplaylet.manager.MintsSign
;
import
com.duben.miniplaylet.manager.ShareSdkManager
;
import
com.duben.miniplaylet.manager.ShumeiManager
;
import
com.duben.miniplaylet.manager.ShumeiManager
;
import
com.duben.miniplaylet.manager.TXCSDKService
;
import
com.duben.miniplaylet.manager.TXCSDKService
;
import
com.duben.miniplaylet.manager.TalkingDataManager
;
import
com.duben.miniplaylet.manager.TalkingDataManager
;
...
@@ -143,6 +144,8 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -143,6 +144,8 @@ public class MintsApplication extends MultiDexApplication {
//logger
//logger
BindLogger
();
BindLogger
();
ShareSdkManager
.
INSTANCE
.
submitPolicyGrantResult
();
// bugly
// bugly
CrashReport
.
initCrashReport
(
this
,
"07da08daad"
,
BuildConfig
.
DEBUG
);
CrashReport
.
initCrashReport
(
this
,
"07da08daad"
,
BuildConfig
.
DEBUG
);
}
}
...
...
video/app/src/main/java/com/duben/miniplaylet/mvp/presenters/DrawCashPresenter.kt
View file @
2cdcb365
...
@@ -37,7 +37,7 @@ class DrawCashPresenter : BasePresenter<DrawCashView>() {
...
@@ -37,7 +37,7 @@ class DrawCashPresenter : BasePresenter<DrawCashView>() {
val
message
=
baseResponse
.
message
val
message
=
baseResponse
.
message
when
(
code
)
{
when
(
code
)
{
200
->
{
200
->
{
view
.
showToast
(
"微信授权成功"
)
view
.
wxMsgSuc
(
)
}
}
else
->
view
.
showToast
(
message
)
else
->
view
.
showToast
(
message
)
}
}
...
...
video/app/src/main/java/com/duben/miniplaylet/mvp/views/DrawCashView.kt
View file @
2cdcb365
...
@@ -5,4 +5,5 @@ import com.duben.miniplaylet.mvp.model.DrawInfoBean
...
@@ -5,4 +5,5 @@ import com.duben.miniplaylet.mvp.model.DrawInfoBean
interface
DrawCashView
:
BaseView
{
interface
DrawCashView
:
BaseView
{
fun
getRedpkgSuc
(
data
:
DrawInfoBean
)
fun
getRedpkgSuc
(
data
:
DrawInfoBean
)
fun
getYuanbaoSuc
(
data
:
DrawInfoBean
)
fun
getYuanbaoSuc
(
data
:
DrawInfoBean
)
fun
wxMsgSuc
()
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/miniplaylet/ui/fragment/draw/DrawCashFragment.kt
View file @
2cdcb365
...
@@ -156,6 +156,18 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView,
...
@@ -156,6 +156,18 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView,
}
}
}
}
override
fun
wxMsgSuc
()
{
showToast
(
"微信授权成功"
)
if
(
drawType
==
DRAW_TYPE_CASH
)
{
// 红包
drawCashPresenter
.
cashPageCoin
()
}
else
{
// 元宝
drawCashPresenter
.
cashPageDi
()
}
}
override
fun
onItemClick
(
position
:
Int
)
{
override
fun
onItemClick
(
position
:
Int
)
{
currentDrawInfo
=
yuanbaoBean
?.
list
?.
get
(
position
)
currentDrawInfo
=
yuanbaoBean
?.
list
?.
get
(
position
)
currentPosition
=
position
currentPosition
=
position
...
...
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