Commit f8667c54 authored by Li's avatar Li

[李俊岐] 优化上报

parent f419b8fe
......@@ -31,7 +31,7 @@ class ClockInWithdrawActitivy : BaseActivity(), ClockInWithdrawContract.View,
}
override fun init() {
EventUtils.onEvent("tab_imp","ClockInWithdraw")
EventUtils.onEvent("tab_imp","attendance_show")
mPresenter = ClockInWithdrawPresenter(this)
iv_clock_in_close?.setOnClickListener {
finish()
......
......@@ -38,7 +38,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
}
override fun init() {
EventUtils.onEvent("tab_imp","WelfareActivity")
EventUtils.onEvent("welfare_show")
mPresenter = WelfarePresenter(this)
iv_welfare_close?.setOnClickListener {
finish()
......@@ -193,6 +193,7 @@ class WelfareActivity : BaseActivity(), WelfareContract.View,
override fun taskReceiveListResult(result: TaskCompleteEntity?) {
request()
if (result != null) {
EventUtils.onEvent("welfare_task_receive_dialog_show")
CenterDialog.showgetWaterDrop(
this,
3,
......
......@@ -10,6 +10,7 @@ import com.ym.library.module.FlyBoxEntity
import com.ym.library.net.BaseObserver
import com.ym.library.net.GameApiClient
import com.ym.library.net.RxSchedulers
import com.ym.library.utils.EventUtils
class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
......@@ -58,6 +59,7 @@ class ClockInWithdrawPresenter : ClockInWithdrawContract.Presenter {
if (result != null) {
var type = result.type
if (type != null) {
EventUtils.onEvent("attendance_task_box_receive_dialog_show")
MainDialog.showopenBox(
activity, type,
"宝箱奖励",
......
......@@ -448,9 +448,9 @@ object MainDialog {
} else if (type == 4) {
EventUtils.onEvent("show_fuli0.3", "福利0.3")
} else if (type == 7){
EventUtils.onEvent("welfare_withdraw_success")
EventUtils.onEvent("welfare_withdraw_success_dialog_show")
} else if (type == 8) {
EventUtils.onEvent("cattendance_withdraw_success")
EventUtils.onEvent("attendance_withdraw_success_dialog_show")
} else {
if (id != null) {
when (id) {
......
......@@ -999,7 +999,8 @@ public class Utils {
msg = "网络不给力,请重新尝试";
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();
oneTime = System.currentTimeMillis();
} 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