修改额度汇率的展现形式

This commit is contained in:
quzard
2023-06-21 17:17:40 +08:00
parent cecd3700d7
commit 0facecce69
4 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ var Footer = ""
var Logo = ""
var TopUpLink = ""
var ChatLink = ""
var QuotaPerUnit = 0.002 // $0.002 / 1K tokens
var QuotaPerUnit = 500 * 1000.0 // $0.002 / 1K tokens
var DisplayInCurrencyEnabled = false
var UsingSQLite = false

View File

@@ -45,7 +45,7 @@ func FatalLog(v ...any) {
func LogQuota(quota int) string {
if DisplayInCurrencyEnabled {
return fmt.Sprintf("%.6f 额度", float64(quota)/1000*QuotaPerUnit)
return fmt.Sprintf("%.6f 额度", float64(quota)/QuotaPerUnit)
} else {
return fmt.Sprintf("%d 点额度", quota)
}