From 6449c925a7a842b8b645d3f54a839fd6a368c933 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Tue, 14 May 2024 19:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app/(auth)/login/user-login-button.tsx | 8 +++++++- app/client/api.ts | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/app/(auth)/login/user-login-button.tsx b/app/app/(auth)/login/user-login-button.tsx index a96e6c160..20f047575 100644 --- a/app/app/(auth)/login/user-login-button.tsx +++ b/app/app/(auth)/login/user-login-button.tsx @@ -73,7 +73,13 @@ export default function UserLoginButton() { case "AccessDenied": openNotification("error", { message: "登录失败", - description: "无权限,请确认用户名正确并等待审批", + description: ( + + 无权限,请确认用户名正确并等待审批 +
+ 或联系管理员 +
+ ), }); break; default: diff --git a/app/client/api.ts b/app/client/api.ts index 442fce46f..86fbecd0b 100644 --- a/app/client/api.ts +++ b/app/client/api.ts @@ -204,5 +204,7 @@ export function getHeaders(isAzure?: boolean) { export function useGetMidjourneySelfProxyUrl(url: string) { const accessStore = useAccessStore.getState(); console.log("useMjImgSelfProxy", accessStore.useMjImgSelfProxy); - return url; + + console.log("---------", url); + return url.replace("cdn.discordapp.com", "cdnig.duckagi.com"); }