Fix bug: - 宝箱任务 启动倒计时 从当日0点修改为当前 毫秒数
This commit is contained in:
parent
7a381c1ff6
commit
427b17bd85
|
|
@ -74,7 +74,7 @@ class BoxTaskHelper: BaseTaskHelper<TaskStateBoxRoot, BoxTaskRoot>() {
|
|||
|
||||
boxStateList.add(TaskStateBox(task.chest_id, task.chest_name, task.duration_days,
|
||||
task.reward_type, task.reward_value, task.is_one_time, task.status,
|
||||
boxSubTaskStateList, DateUtil.getTodayStartTimeMs()))
|
||||
boxSubTaskStateList, DateUtil.getCurTimeMs()))
|
||||
}
|
||||
|
||||
return TaskStateBoxRoot(boxStateList)
|
||||
|
|
@ -105,7 +105,7 @@ class BoxTaskHelper: BaseTaskHelper<TaskStateBoxRoot, BoxTaskRoot>() {
|
|||
if (stateEnum == STATE_ONGOING) {
|
||||
if (mStateBean.currentBoxIndex != index) {
|
||||
mStateBean.currentBoxIndex = index
|
||||
mStateBean.boxList[index].boxStartMs = DateUtil.getTodayStartTimeMs()
|
||||
mStateBean.boxList[index].boxStartMs = DateUtil.getCurTimeMs()
|
||||
saveState2Sp()
|
||||
notifyEvent()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue