feat: 可自定义支付回调地址及最低购买数量

This commit is contained in:
1808837298@qq.com
2024-03-02 22:07:32 +08:00
parent ca5c4d2dbd
commit 72194bda98
7 changed files with 76 additions and 22 deletions

10
service/epay.go Normal file
View File

@@ -0,0 +1,10 @@
package service
import "one-api/common"
func GetCallbackAddress() string {
if common.CustomCallbackAddress == "" {
return common.ServerAddress
}
return common.CustomCallbackAddress
}