Skip to content

Commit 4320529

Browse files
authored
登录更换通信字段 (#143)
* fix * fix * fix
1 parent 10df392 commit 4320529

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/views/btnApiKey/apiKeyDialog.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,13 @@
9292
}
9393
const openOAuthPopup = async (setKey: (key: string) => void) => {
9494
const clientId = 'SFtNABXGEb5rZxogl8p3cM'
95+
// const clientId = 'SF1RAE3KAmVBGTTHRkAL87'
9596
const ACCOUNT_ENDPOINT = 'https://account.siliconflow.cn'
9697
const authUrl = `${ACCOUNT_ENDPOINT}/oauth?client_id=${clientId}`
9798
const popup = window.open(authUrl, 'oauthPopup', 'width=600,height=600')
9899
window.addEventListener('message', event => {
99-
if (event.data.data.length > 0 && event.data.data[0]['secretKey'] !== undefined) {
100-
setKey(event.data.data[0]['secretKey'])
100+
if (event.data.data.length > 0 && event.data.data[0]['secret_key_bizyair'] !== undefined) {
101+
setKey(event.data.data[0]['secret_key_bizyair'])
101102
if (popup) {
102103
popup.close()
103104
}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.74
1+
1.2.75

0 commit comments

Comments
 (0)