mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 06:47:26 +00:00
Merge pull request #2124 from feitianbubu/pr/fix-topup-link
fix: correct topUp link
This commit is contained in:
@@ -220,7 +220,7 @@ func genStripeLink(referenceId string, customerId string, email string, amount i
|
|||||||
params := &stripe.CheckoutSessionParams{
|
params := &stripe.CheckoutSessionParams{
|
||||||
ClientReferenceID: stripe.String(referenceId),
|
ClientReferenceID: stripe.String(referenceId),
|
||||||
SuccessURL: stripe.String(system_setting.ServerAddress + "/console/log"),
|
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{
|
LineItems: []*stripe.CheckoutSessionLineItemParams{
|
||||||
{
|
{
|
||||||
Price: stripe.String(setting.StripePriceId),
|
Price: stripe.String(setting.StripePriceId),
|
||||||
|
|||||||
@@ -535,7 +535,7 @@ func checkAndSendQuotaNotify(relayInfo *relaycommon.RelayInfo, quota int, preCon
|
|||||||
}
|
}
|
||||||
if quotaTooLow {
|
if quotaTooLow {
|
||||||
prompt := "您的额度即将用尽"
|
prompt := "您的额度即将用尽"
|
||||||
topUpLink := fmt.Sprintf("%s/topup", system_setting.ServerAddress)
|
topUpLink := fmt.Sprintf("%s/console/topup", system_setting.ServerAddress)
|
||||||
|
|
||||||
// 根据通知方式生成不同的内容格式
|
// 根据通知方式生成不同的内容格式
|
||||||
var content string
|
var content string
|
||||||
|
|||||||
Reference in New Issue
Block a user