feat: support channel type AIGC2D (#220)

* feat: add AIGC2D Channel

* chore: remove console logging & update balance rendering

---------

Co-authored-by: Alone88 <im@aloen88.cn>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
Alone88
2023-06-29 21:34:17 +08:00
committed by GitHub
parent 8f6bd51f58
commit b1b3651e84
4 changed files with 31 additions and 1 deletions

View File

@@ -38,6 +38,8 @@ function renderBalance(type, balance) {
return <span>{renderNumber(balance)}</span>;
case 12: // API2GPT
return <span>¥{balance.toFixed(2)}</span>;
case 13: // AIGC2D
return <span>{renderNumber(balance)}</span>;
default:
return <span>不支持</span>;
}