Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
LuckyFarm
Commits
f8667c54
Commit
f8667c54
authored
Nov 23, 2020
by
Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[李俊岐] 优化上报
parent
f419b8fe
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
5 deletions
+9
-5
ClockInWithdrawActitivy.kt
...main/java/com/ym/game/activity/ClockInWithdrawActitivy.kt
+1
-1
WelfareActivity.kt
app/src/main/java/com/ym/game/activity/WelfareActivity.kt
+2
-1
ClockInWithdrawPresenter.kt
...in/java/com/ym/game/presenter/ClockInWithdrawPresenter.kt
+2
-0
MainDialog.kt
app/src/main/java/com/ym/game/view/MainDialog.kt
+2
-2
Utils.java
library/src/main/java/com/ym/library/utils/Utils.java
+2
-1
No files found.
app/src/main/java/com/ym/game/activity/ClockInWithdrawActitivy.kt
View file @
f8667c54
...
@@ -31,7 +31,7 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
...
@@ -31,7 +31,7 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
}
}
override
fun
init
()
{
override
fun
init
()
{
EventUtils
.
onEvent
(
"tab_imp"
,
"
ClockInWithdra
w"
)
EventUtils
.
onEvent
(
"tab_imp"
,
"
attendance_sho
w"
)
mPresenter
=
ClockInWithdrawPresenter
(
this
)
mPresenter
=
ClockInWithdrawPresenter
(
this
)
iv_clock_in_close
?.
setOnClickListener
{
iv_clock_in_close
?.
setOnClickListener
{
finish
()
finish
()
...
...
app/src/main/java/com/ym/game/activity/WelfareActivity.kt
View file @
f8667c54
...
@@ -38,7 +38,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
...
@@ -38,7 +38,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
}
}
override
fun
init
()
{
override
fun
init
()
{
EventUtils
.
onEvent
(
"
tab_imp"
,
"WelfareActivity
"
)
EventUtils
.
onEvent
(
"
welfare_show
"
)
mPresenter
=
WelfarePresenter
(
this
)
mPresenter
=
WelfarePresenter
(
this
)
iv_welfare_close
?.
setOnClickListener
{
iv_welfare_close
?.
setOnClickListener
{
finish
()
finish
()
...
@@ -193,6 +193,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
...
@@ -193,6 +193,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
override
fun
taskReceiveListResult
(
result
:
TaskCompleteEntity
?)
{
override
fun
taskReceiveListResult
(
result
:
TaskCompleteEntity
?)
{
request
()
request
()
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
EventUtils
.
onEvent
(
"welfare_task_receive_dialog_show"
)
CenterDialog
.
showgetWaterDrop
(
CenterDialog
.
showgetWaterDrop
(
this
,
this
,
3
,
3
,
...
...
app/src/main/java/com/ym/game/presenter/ClockInWithdrawPresenter.kt
View file @
f8667c54
...
@@ -10,6 +10,7 @@ import com.ym.library.module.FlyBoxEntity
...
@@ -10,6 +10,7 @@ import com.ym.library.module.FlyBoxEntity
import
com.ym.library.net.BaseObserver
import
com.ym.library.net.BaseObserver
import
com.ym.library.net.GameApiClient
import
com.ym.library.net.GameApiClient
import
com.ym.library.net.RxSchedulers
import
com.ym.library.net.RxSchedulers
import
com.ym.library.utils.EventUtils
class
ClockInWithdrawPresenter
:
ClockInWithdrawContract
.
Presenter
{
class
ClockInWithdrawPresenter
:
ClockInWithdrawContract
.
Presenter
{
...
@@ -58,6 +59,7 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
...
@@ -58,6 +59,7 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
var
type
=
result
.
type
var
type
=
result
.
type
if
(
type
!=
null
)
{
if
(
type
!=
null
)
{
EventUtils
.
onEvent
(
"attendance_task_box_receive_dialog_show"
)
MainDialog
.
showopenBox
(
MainDialog
.
showopenBox
(
activity
,
type
,
activity
,
type
,
"宝箱奖励"
,
"宝箱奖励"
,
...
...
app/src/main/java/com/ym/game/view/MainDialog.kt
View file @
f8667c54
...
@@ -448,9 +448,9 @@ object MainDialog {
...
@@ -448,9 +448,9 @@ object MainDialog {
}
else
if
(
type
==
4
)
{
}
else
if
(
type
==
4
)
{
EventUtils
.
onEvent
(
"show_fuli0.3"
,
"福利0.3"
)
EventUtils
.
onEvent
(
"show_fuli0.3"
,
"福利0.3"
)
}
else
if
(
type
==
7
){
}
else
if
(
type
==
7
){
EventUtils
.
onEvent
(
"welfare_withdraw_success"
)
EventUtils
.
onEvent
(
"welfare_withdraw_success
_dialog_show
"
)
}
else
if
(
type
==
8
)
{
}
else
if
(
type
==
8
)
{
EventUtils
.
onEvent
(
"
cattendance_withdraw_success
"
)
EventUtils
.
onEvent
(
"
attendance_withdraw_success_dialog_show
"
)
}
else
{
}
else
{
if
(
id
!=
null
)
{
if
(
id
!=
null
)
{
when
(
id
)
{
when
(
id
)
{
...
...
library/src/main/java/com/ym/library/utils/Utils.java
View file @
f8667c54
...
@@ -999,7 +999,8 @@ public class Utils {
...
@@ -999,7 +999,8 @@ public class Utils {
msg
=
"网络不给力,请重新尝试"
;
msg
=
"网络不给力,请重新尝试"
;
if
(
toast
==
null
)
{
if
(
toast
==
null
)
{
toast
=
Toast
.
makeText
(
AppliContext
.
get
(),
msg
,
Toast
.
LENGTH_SHORT
);
toast
=
Toast
.
makeText
(
AppliContext
.
get
(),
null
,
Toast
.
LENGTH_SHORT
);
toast
.
setText
(
msg
);
toast
.
show
();
toast
.
show
();
oneTime
=
System
.
currentTimeMillis
();
oneTime
=
System
.
currentTimeMillis
();
}
else
{
}
else
{
...
...
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