MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / FormatQuota

Function FormatQuota

common/logger.go:107–113  ·  view source on GitHub ↗
(quota int)

Source from the content-addressed store, hash-verified

105}
106
107func FormatQuota(quota int) string {
108 if DisplayInCurrencyEnabled {
109 return fmt.Sprintf("$%.6f", float64(quota)/QuotaPerUnit)
110 } else {
111 return fmt.Sprintf("%d", quota)
112 }
113}
114
115// LogJson 仅供测试使用 only for test
116func LogJson(ctx context.Context, msg string, obj any) {

Callers 1

RechargeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected