From 74e5e640c5a71d1d67796548be2a2bb07c5caf8d Mon Sep 17 00:00:00 2001 From: feitianbubu Date: Wed, 29 Oct 2025 16:51:15 +0800 Subject: [PATCH 1/2] fix: correct topUp link --- service/quota.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/quota.go b/service/quota.go index 495e379d4..c34a36dad 100644 --- a/service/quota.go +++ b/service/quota.go @@ -535,7 +535,7 @@ func checkAndSendQuotaNotify(relayInfo *relaycommon.RelayInfo, quota int, preCon } if quotaTooLow { prompt := "您的额度即将用尽" - topUpLink := fmt.Sprintf("%s/topup", system_setting.ServerAddress) + topUpLink := fmt.Sprintf("%s/console/topup", system_setting.ServerAddress) // 根据通知方式生成不同的内容格式 var content string From 6a96ddea76d74da2c0c82627f7427f986bb6a62b Mon Sep 17 00:00:00 2001 From: feitianbubu Date: Thu, 30 Oct 2025 13:41:52 +0800 Subject: [PATCH 2/2] fix: stripe cancelURL topUp link --- controller/topup_stripe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/topup_stripe.go b/controller/topup_stripe.go index 75dbe28b4..337ff8e73 100644 --- a/controller/topup_stripe.go +++ b/controller/topup_stripe.go @@ -220,7 +220,7 @@ func genStripeLink(referenceId string, customerId string, email string, amount i params := &stripe.CheckoutSessionParams{ ClientReferenceID: stripe.String(referenceId), SuccessURL: stripe.String(system_setting.ServerAddress + "/console/log"), - CancelURL: stripe.String(system_setting.ServerAddress + "/topup"), + CancelURL: stripe.String(system_setting.ServerAddress + "/console/topup"), LineItems: []*stripe.CheckoutSessionLineItemParams{ { Price: stripe.String(setting.StripePriceId),