Commit f8667c54 authored by Li's avatar Li

[李俊岐] 优化上报

parent f419b8fe
...@@ -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","ClockInWithdraw") EventUtils.onEvent("tab_imp","attendance_show")
mPresenter = ClockInWithdrawPresenter(this) mPresenter = ClockInWithdrawPresenter(this)
iv_clock_in_close?.setOnClickListener { iv_clock_in_close?.setOnClickListener {
finish() finish()
......
...@@ -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,
......
...@@ -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,
"宝箱奖励", "宝箱奖励",
......
...@@ -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) {
......
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment