diff --git a/src/renderer/src/utils/oauth.ts b/src/renderer/src/utils/oauth.ts index a15207f5d7..b5ec78edbe 100644 --- a/src/renderer/src/utils/oauth.ts +++ b/src/renderer/src/utils/oauth.ts @@ -60,7 +60,7 @@ export const oauthWithAihubmix = async (setKey) => { export const oauthWithPPIO = async (setKey) => { const redirectUri = 'cherrystudio://' - const authUrl = `https://ppio.cn/oauth/authorize?client_id=${PPIO_CLIENT_ID}&scope=api%20openid&response_type=code&redirect_uri=${encodeURIComponent(redirectUri)}` + const authUrl = `https://ppio.cn/oauth/authorize?invited_by=JYT9GD&client_id=${PPIO_CLIENT_ID}&scope=api%20openid&response_type=code&redirect_uri=${encodeURIComponent(redirectUri)}` window.open( authUrl, @@ -167,7 +167,7 @@ export const providerCharge = async (provider: string) => { height: 700 }, ppio: { - url: 'https://ppio.cn/billing?utm_source=github_cherry-studio', + url: 'https://ppio.cn/billing?invited_by=JYT9GD&utm_source=github_cherry-studio', width: 900, height: 700 } @@ -200,7 +200,7 @@ export const providerBills = async (provider: string) => { height: 700 }, ppio: { - url: 'https://ppio.cn/billing/billing-details?utm_source=github_cherry-studio', + url: 'https://ppio.cn/billing/billing-details?invited_by=JYT9GD&utm_source=github_cherry-studio', width: 900, height: 700 }