Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
19c40c5a
authored
Oct 31, 2025
by
Seefs
Committed by
GitHub
Oct 31, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2124 from feitianbubu/pr/fix-topup-link
fix: correct topUp link
parents
ba949ac5
2c84c79f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
controller/topup_stripe.go
+1
-1
service/quota.go
+1
-1
No files found.
controller/topup_stripe.go
View file @
19c40c5a
...
...
@@ -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
),
...
...
service/quota.go
View file @
19c40c5a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment