(quota int)
| 105 | } |
| 106 | |
| 107 | func 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 |
| 116 | func LogJson(ctx context.Context, msg string, obj any) { |