-
+
{t("rsshub.useModal.month")}
diff --git a/apps/renderer/src/queries/rsshub.ts b/apps/renderer/src/queries/rsshub.ts
index 27c986c4e..50d71eeb7 100644
--- a/apps/renderer/src/queries/rsshub.ts
+++ b/apps/renderer/src/queries/rsshub.ts
@@ -11,9 +11,13 @@ export const useSetRSSHubMutation = ({ onError }: MutationBaseProps = {}) =>
mutationFn: (data: { id: string | null; durationInMonths?: number }) =>
apiClient.rsshub.use.$post({ json: data }),
- onSuccess: () => {
+ onSuccess: (_, variables) => {
rsshub.list().invalidate()
rsshub.status().invalidate()
+
+ if (variables.id) {
+ rsshub.get({ id: variables.id }).invalidate()
+ }
},
onError: (error) => {
diff --git a/locales/errors/en.json b/locales/errors/en.json
index 88659a001..a0d9c57d8 100644
--- a/locales/errors/en.json
+++ b/locales/errors/en.json
@@ -56,5 +56,6 @@
"11002": "RSSHub is in use",
"11003": "RSSHub not found",
"11004": "RSSHub user limit exceeded",
+ "11005": "RSSHub purchase not found",
"12000": "Action limit exceeded"
}
diff --git a/locales/settings/en.json b/locales/settings/en.json
index 97aa26cab..cc53c8f45 100644
--- a/locales/settings/en.json
+++ b/locales/settings/en.json
@@ -291,6 +291,7 @@
"rsshub.useModal.about": "About this Instance",
"rsshub.useModal.month": "month",
"rsshub.useModal.months_label": "The number of months you want to purchase",
+ "rsshub.useModal.purchase_expires_at": "You have purchased this Instance, and your purchase expires at",
"rsshub.useModal.title": "RSSHub Instance",
"rsshub.useModal.useWith": "Use with {{amount}} Power",
"titles.about": "About",
diff --git a/packages/shared/src/hono.ts b/packages/shared/src/hono.ts
index 979236e6b..8ac0e080c 100644
--- a/packages/shared/src/hono.ts
+++ b/packages/shared/src/hono.ts
@@ -12726,13 +12726,19 @@ declare const _routes: hono_hono_base.HonoBase