diff --git a/src/components/platform-entry/usePlatformProfileCenterController.ts b/src/components/platform-entry/usePlatformProfileCenterController.ts index 336e6f5ca..666797531 100644 --- a/src/components/platform-entry/usePlatformProfileCenterController.ts +++ b/src/components/platform-entry/usePlatformProfileCenterController.ts @@ -770,9 +770,9 @@ export function usePlatformProfileCenterController({ return false; } - // TODO:小程序支付回跳通常仍是同一账号,当前风险很低;若以后支持支付期间切号或 - // 跨 WebView 恢复,应持久化并校验 requestId + orderId + ownerUserId 后再采纳无 - // 内存 pending order 的 hash。后端订单 owner 校验继续作为最终安全边界。 + // 中文注释:无内存 pending order 的小程序回跳暂按当前账号上下文处理,后端订单 + // owner 校验仍是最终安全边界;跨 WebView 恢复若引入持久关联,必须同时校验 + // requestId、orderId 与 ownerUserId。 const account = pendingOrder?.account ?? captureAccountLifecycle(); if (!account.ownerUserId || !isAccountLifecycleCurrent(account)) { return false;