mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-29 06:36:38 +08:00
12 lines
222 B
Go
12 lines
222 B
Go
package common
|
||
|
||
import "fmt"
|
||
|
||
func LogQuota(quota int) string {
|
||
if DisplayInCurrencyEnabled {
|
||
return fmt.Sprintf("$%.6f 额度", float64(quota)/QuotaPerUnit)
|
||
} else {
|
||
return fmt.Sprintf("%d 点额度", quota)
|
||
}
|
||
}
|