From bace6d6975f2942ee15c53d69d89faa968ce61bd Mon Sep 17 00:00:00 2001 From: Rogee Date: Tue, 13 Jan 2026 09:34:06 +0800 Subject: [PATCH] fix: friendly prompt for tenant-only content --- backend/app/services/content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/content.go b/backend/app/services/content.go index 497a665..5f1405b 100644 --- a/backend/app/services/content.go +++ b/backend/app/services/content.go @@ -638,7 +638,7 @@ func (s *content) ensureContentReadable(ctx context.Context, userID int64, item case consts.ContentVisibilityTenantOnly: // 店铺内可见内容需要登录并满足成员/购买条件。 if userID == 0 { - return errorx.ErrForbidden.WithMsg("内容仅限本店铺成员访问") + return errorx.ErrForbidden.WithMsg("请登录后查看该内容") } if item.UserID == userID { return nil