feat: add OpenRouter balance update functionality and improve code formatting

This commit is contained in:
JustSong
2025-02-11 00:35:06 +08:00
parent eb96aa635e
commit 4d011c5f98
3 changed files with 28 additions and 0 deletions

View File

@@ -57,6 +57,8 @@ function renderBalance(type, balance, t) {
return <span>¥{balance.toFixed(2)}</span>;
case 13: // AIGC2D
return <span>{renderNumber(balance)}</span>;
case 20: // OpenRouter
return <span>${balance.toFixed(2)}</span>;
case 36: // DeepSeek
return <span>¥{balance.toFixed(2)}</span>;
case 44: // SiliconFlow