From 38cf3869bce7cca3064af2166c25a350a1786280 Mon Sep 17 00:00:00 2001 From: cnJasonZ Date: Fri, 11 Jul 2025 18:00:35 +0800 Subject: [PATCH] fix: ppio oauth links (#8073) --- src/renderer/src/utils/oauth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }