From 03e93bae38bb2ae0c8b148ff3571e1b41822475c Mon Sep 17 00:00:00 2001 From: Blank Date: Tue, 3 Nov 2026 09:19:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(online-social):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=AA=E8=AF=BB=E7=A7=81=E6=9C=89=E5=AD=97=E6=AE=B5=20=5Fsco?= =?UTF-8?q?pe=20=E5=B9=B6=E5=A6=82=E5=AE=9E=E5=8C=96=E6=B8=85=E6=89=AB?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sonar S4487:字段仅 Register 期赋值、全类零读取,为机制化改写残留。 清扫滴答 job 实为全存储按状态扫描,注释中「经 OnlineScope 锚定租户/ App」表述失实,一并修正;同步删除失去引用的 Scope 命名空间 using。 公共 API 零变化。 Linear: GFX-1208 --- .../OnlineSocialCapabilityModule.cs | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Capability/GameFrameX.Capability.Online.Social/OnlineSocialCapabilityModule.cs b/Capability/GameFrameX.Capability.Online.Social/OnlineSocialCapabilityModule.cs index ad36e325..6ceeda3c 100644 --- a/Capability/GameFrameX.Capability.Online.Social/OnlineSocialCapabilityModule.cs +++ b/Capability/GameFrameX.Capability.Online.Social/OnlineSocialCapabilityModule.cs @@ -35,7 +35,6 @@ using GameFrameX.Capability.Hosting.AdminApi; using GameFrameX.Capability.Online.Abstractions.Events; using GameFrameX.Capability.Online.Abstractions.Contracts; -using GameFrameX.Capability.Online.Abstractions.Scope; using GameFrameX.Capability.Online.Foundation.Session; using GameFrameX.Capability.Online.Social.AdminApi; @@ -50,7 +49,7 @@ namespace GameFrameX.Capability.Online.Social; /// fail-fast); 在线探针经 GetService 解析(必选 /// online-foundation 提供);跨域硬依赖(事件出口 / Foundation 会话面)经上下文解析;对外产物(store 接口 + /// 好友 / 裁决 / 处罚 / 通知 / 聊天 / 群组服务 + 裁决面 + 聊天审计投影)注册回共享面; -/// 两个过期清扫滴答 job(通知 + 好友请求)经族基建 锚定租户 / App。 +/// 两个过期清扫滴答 job(通知 + 好友请求)为全存储终态扫描,不锚定作用域。 /// /// /// ActivateAsync:发布 好友域桥契约面( @@ -68,8 +67,8 @@ namespace GameFrameX.Capability.Online.Social; /// Register self-assembles the domain — the six stores go through lazy-default registration plus /// GetService resolution (family / host overrides always win); the player directory is declared as a host /// extension point via RequireHostService; the presence probe resolves through the required online-foundation -/// dependency; outward products are registered back into the shared face; two expiry-sweep tick jobs anchor their -/// tenant / app on the family infrastructure. ActivateAsync publishes the +/// dependency; outward products are registered back into the shared face; two expiry-sweep tick jobs scan the +/// full stores without scope anchoring. ActivateAsync publishes the /// bridge face and injects channel-membership probes into the chat service by /// enumerating the extension point. /// The chat moderation extension point is declared with the default allow-all strategy, replaced atomically by the @@ -139,11 +138,6 @@ public sealed class OnlineSocialCapabilityModule : ICapabilityModule, IAdminActi /// private OnlineSocialOptions _options; - /// - /// 族基建作用域(Register 期解析)。 - /// - private OnlineScope _scope; - /// /// 获取在线社交能力的静态清单(单例实例)。 /// @@ -157,13 +151,13 @@ public CapabilityManifest Manifest } /// - /// 注册社交能力:解析作用域、会话存储与会话令牌服务;为聊天、好友、群组、通知、举报与社交关系注册内存默认存储; + /// 注册社交能力:解析会话存储与会话令牌服务;为聊天、好友、群组、通知、举报与社交关系注册内存默认存储; /// 要求宿主提供玩家目录并装配好友服务,装配社交决策、处罚、通知、聊天审计投影服务; /// 以默认放行策略声明聊天审核钩子并构造聊天服务(成员资格探针激活期注入);群组服务以命名 group 注册为频道成员资格探针; /// 将社交决策服务注册为社交门控,并注册通知与好友请求的过期清理 tick 任务。 /// /// - /// Resolves scope, session store and session token service, registers in-memory default stores for chat, friends, groups, notifications, reports and the social graph, + /// Resolves the session store and session token service, registers in-memory default stores for chat, friends, groups, notifications, reports and the social graph, /// requires the host player directory and builds friend, decision, punishment, notification and chat audit services, declares the chat moderation hook with an allow-all default /// and builds the chat service (membership probes injected at activation), registers the group service as the named group membership probe, /// exposes the decision service as the social gate and adds notification and friend request expiry sweep tick jobs. @@ -173,7 +167,6 @@ public void Register(CapabilityRegistrationContext context) { _options = context.GetOptions(); var eventPublisher = context.GetService(); - _scope = context.GetService(); _sessionStore = context.GetService(); _tokens = context.GetService();