feat: 支持通关字段上报
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user