diff --git a/Assets/BriskSdk/Runtime/Space/BriskSpaceModule.cs b/Assets/BriskSdk/Runtime/Space/BriskSpaceModule.cs index ec97fe6..f5c7a1a 100644 --- a/Assets/BriskSdk/Runtime/Space/BriskSpaceModule.cs +++ b/Assets/BriskSdk/Runtime/Space/BriskSpaceModule.cs @@ -240,7 +240,7 @@ public sealed class BriskSpaceModule /// /// 获取我的访客列表。 /// - public async Task> GetMyVisitsAsync(int limit = 20) + public async Task> GetMyVisitsAsync(int limit = 50) { return await ExecuteAsync(async context => { diff --git a/PackageSource/com.foldcc.cc-framework.brisk-game-server/Documentation~/QuickStart.md b/PackageSource/com.foldcc.cc-framework.brisk-game-server/Documentation~/QuickStart.md index 2831fa8..825c5d0 100644 --- a/PackageSource/com.foldcc.cc-framework.brisk-game-server/Documentation~/QuickStart.md +++ b/PackageSource/com.foldcc.cc-framework.brisk-game-server/Documentation~/QuickStart.md @@ -69,6 +69,7 @@ var likeResult = await Brisk.Space.LikeByPlayerIdAsync("target-player-id"); Debug.Log($"total={likeResult.LikeCount}, today={likeResult.TodayLikeCount}, created={likeResult.Created}"); var todayLikes = await Brisk.Space.GetLikesByPlayerIdAsync(Brisk.PlayerId, 20, true); +var visits = await Brisk.Space.GetMyVisitsAsync(); ``` Notes: @@ -81,6 +82,7 @@ Notes: - `BriskSpaceView` / `BriskSpaceStats` include both `LikeCount` and `TodayLikeCount` - `BriskSpaceView` also includes `LikedByMe` and `LikeResetAt` - `GetLikesByPlayerIdAsync(..., currentCycleOnly: true)` returns current-cycle likes only +- `GetMyVisitsAsync()` now defaults to the latest `50` visits, with `100` as the server-side max ## Sample diff --git a/PackageSource/com.foldcc.cc-framework.brisk-game-server/README.md b/PackageSource/com.foldcc.cc-framework.brisk-game-server/README.md index 0cfb517..efd1be8 100644 --- a/PackageSource/com.foldcc.cc-framework.brisk-game-server/README.md +++ b/PackageSource/com.foldcc.cc-framework.brisk-game-server/README.md @@ -89,6 +89,7 @@ http://private.lightyears.ltd:18650/foldcc/CC-Framework.BriskGameServer.git?path - `UpdateMyAsync(object)` 自动序列化为 JSON - `LikeByPlayerIdAsync(...)` / `UnlikeByPlayerIdAsync(...)` 返回累计点赞数、今日点赞数、当前周期是否创建新点赞、重置时间 - `GetLikesByPlayerIdAsync(playerId, limit, true)` 和 `GetLikesByLoginIdentityAsync(..., true)` 可只读取当前周期点赞记录 +- `GetMyVisitsAsync()` 默认读取最近 `50` 条访问记录,也可手动传入 `limit` ## 目录结构 diff --git a/PackageSource/com.foldcc.cc-framework.brisk-game-server/Runtime/Space/BriskSpaceModule.cs b/PackageSource/com.foldcc.cc-framework.brisk-game-server/Runtime/Space/BriskSpaceModule.cs index ec97fe6..f5c7a1a 100644 --- a/PackageSource/com.foldcc.cc-framework.brisk-game-server/Runtime/Space/BriskSpaceModule.cs +++ b/PackageSource/com.foldcc.cc-framework.brisk-game-server/Runtime/Space/BriskSpaceModule.cs @@ -240,7 +240,7 @@ public sealed class BriskSpaceModule /// /// 获取我的访客列表。 /// - public async Task> GetMyVisitsAsync(int limit = 20) + public async Task> GetMyVisitsAsync(int limit = 50) { return await ExecuteAsync(async context => { diff --git a/README.md b/README.md index d4fb208..e5e1aa3 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Brisk Unity SDK 原始开发工程。 - `Brisk.Space.DownloadContentByPlayerIdAsync(playerId)` 获取原始 bytes - `Brisk.Space.LikeByPlayerIdAsync(playerId)` / `UnlikeByPlayerIdAsync(playerId)` 会返回累计点赞数、今日点赞数、当前周期是否创建了新点赞、重置时间 - `Brisk.Space.GetLikesByPlayerIdAsync(playerId, limit, true)` 可只读取当前周期点赞列表 + - `Brisk.Space.GetMyVisitsAsync()` 默认读取最近 `50` 条访问记录,也可手动传入 `limit` 云存档上传补充约定: