update: b_level, b_play 参数赋值解耦

hotfix/v1.0.12.2 1.0.12.1
胡宇飞 2024-06-06 20:09:23 +08:00
parent 8acd6faf94
commit 67000cbc63
2 changed files with 7 additions and 4 deletions

View File

@ -174,6 +174,9 @@ namespace Guru
} }
} }
internal void SetBLevelValue(int value) => OnLevelChanged(value);
internal void SetBPlayValue(int value) => OnPlayedChanged(value);
#endregion #endregion

View File

@ -370,9 +370,9 @@ namespace Guru
{ {
if (!InitConfig.AutoRecordFinishedLevels) if (!InitConfig.AutoRecordFinishedLevels)
{ {
Model.SuccessLevelId = blevel; Model.SetBLevelValue(blevel);
Analytics.BLevel = blevel;
} }
SetUserProperty(Consts.PropertyLevel, $"{blevel}"); SetUserProperty(Consts.PropertyLevel, $"{blevel}");
} }
@ -380,9 +380,9 @@ namespace Guru
{ {
if (!InitConfig.AutoRecordFinishedLevels) if (!InitConfig.AutoRecordFinishedLevels)
{ {
Model.TotalPlayedCount = bplay; Model.SetBPlayValue(bplay);
Analytics.BPlay = bplay;
} }
SetUserProperty(Consts.PropertyPlay, $"{bplay}"); SetUserProperty(Consts.PropertyPlay, $"{bplay}");
} }