feat: 支持通关字段上报

This commit is contained in:
richarjiang
2026-04-07 15:46:22 +08:00
parent b489ab40f5
commit e05a6a1f8c
3 changed files with 37 additions and 8 deletions

View File

@@ -691,7 +691,8 @@ export class PageLevel extends BaseView {
// 通关奖励:分享模式下不增加积分
if (!this._isShareMode) {
const levelId = this._currentConfig?.id ?? '';
await UserAssetsManager.instance.earnPoint(levelId);
const timeSpent = 60 - this._countdown;
await UserAssetsManager.instance.earnPoint(levelId, timeSpent);
this.updatePointsLabel();
}