(quota int)
| 97 | } |
| 98 | |
| 99 | func LogQuota(quota int) string { |
| 100 | if DisplayInCurrencyEnabled { |
| 101 | return fmt.Sprintf("$%.6f 额度", float64(quota)/QuotaPerUnit) |
| 102 | } else { |
| 103 | return fmt.Sprintf("%d 点额度", quota) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func FormatQuota(quota int) string { |
| 108 | if DisplayInCurrencyEnabled { |
no outgoing calls
no test coverage detected