|
@@ -12,7 +12,7 @@ namespace ET
|
|
|
DailyTaskDataManager.Instance.UpdateLivenessBoxInfo(message.kLivenessBox[i], message.vLivenessBox[i]);
|
|
|
}
|
|
|
EventAgent.DispatchEvent(ConstMessage.RED_CHANGE);
|
|
|
-
|
|
|
+ EventAgent.DispatchEvent(ConstMessage.LIVENESS_CHANGE);
|
|
|
await ETTask.CompletedTask;
|
|
|
}
|
|
|
}
|
|
@@ -40,7 +40,8 @@ namespace GFGGame
|
|
|
response = (M2C_GetLivenessBox)await MessageHelper.SendToServer(new C2M_GetLivenessBox() { Id = boxId });
|
|
|
if (!(response is { Error: ErrorCode.ERR_Success })) return false;
|
|
|
// BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.bonusList));
|
|
|
- DailyTaskDataManager.Instance.UpdateLivenessBoxInfo(response.Id, response.Status);
|
|
|
+ DailyTaskDataManager.Instance.UpdateLivenessBoxInfo(response.Id, response.Status);
|
|
|
+ EventAgent.DispatchEvent(ConstMessage.LIVENESS_CHANGE);
|
|
|
var bonus = TaskActiveRewardCfgArray.Instance.GetCfg(response.Id).rewardsArr;
|
|
|
BonusController.TryShowBonusList(bonus);
|
|
|
return true;
|