Account leveling

This commit is contained in:
2025-05-17 02:31:25 +08:00
parent 6fe0b9b50a
commit 8ab17569ee
6 changed files with 3479 additions and 0 deletions

View File

@ -187,7 +187,13 @@ public class AccountEventService(
result.RewardPoints = null;
}
await db.AccountProfiles
.Where(p => p.AccountId == user.Id)
.ExecuteUpdateAsync(s =>
s.SetProperty(b => b.Experience, b => b.Experience + result.RewardExperience)
);
db.AccountCheckInResults.Add(result);
await act.CreateActivity(
user,
"accounts.check-in",