fix: friendly prompt for tenant-only content
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user