Fix bug: - 宝箱任务 启动倒计时 从当日0点修改为当前 毫秒数

This commit is contained in:
renhaoting 2026-01-07 18:37:40 +08:00
parent 7a381c1ff6
commit 427b17bd85
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class BoxTaskHelper: BaseTaskHelper<TaskStateBoxRoot, BoxTaskRoot>() {
boxStateList.add(TaskStateBox(task.chest_id, task.chest_name, task.duration_days, boxStateList.add(TaskStateBox(task.chest_id, task.chest_name, task.duration_days,
task.reward_type, task.reward_value, task.is_one_time, task.status, task.reward_type, task.reward_value, task.is_one_time, task.status,
boxSubTaskStateList, DateUtil.getTodayStartTimeMs())) boxSubTaskStateList, DateUtil.getCurTimeMs()))
} }
return TaskStateBoxRoot(boxStateList) return TaskStateBoxRoot(boxStateList)
@ -105,7 +105,7 @@ class BoxTaskHelper: BaseTaskHelper<TaskStateBoxRoot, BoxTaskRoot>() {
if (stateEnum == STATE_ONGOING) { if (stateEnum == STATE_ONGOING) {
if (mStateBean.currentBoxIndex != index) { if (mStateBean.currentBoxIndex != index) {
mStateBean.currentBoxIndex = index mStateBean.currentBoxIndex = index
mStateBean.boxList[index].boxStartMs = DateUtil.getTodayStartTimeMs() mStateBean.boxList[index].boxStartMs = DateUtil.getCurTimeMs()
saveState2Sp() saveState2Sp()
notifyEvent() notifyEvent()
} }