feat: Add support for AIHubMix topup and charge functionality

This commit is contained in:
kangfenmao
2025-02-08 16:26:10 +08:00
parent ca02ac427f
commit 4d82d58752
5 changed files with 34 additions and 11 deletions
+5 -1
View File
@@ -163,7 +163,11 @@ export class WindowService {
mainWindow.webContents.setWindowOpenHandler((details) => {
const { url } = details
const oauthProviderUrls = ['https://account.siliconflow.cn/oauth', 'https://aihubmix.com/oauth']
const oauthProviderUrls = [
'https://account.siliconflow.cn/oauth',
'https://aihubmix.com/oauth',
'https://aihubmix.com/topup'
]
if (oauthProviderUrls.some((link) => url.startsWith(link))) {
return {