From 8f68d64cd7e391d598a5625c3ea7c2639aa891e1 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 2 Jul 2024 22:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90todo=E3=80=91=E5=A2=9E=E5=8A=A0todo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/ai/service/model/AiApiKeyServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/model/AiApiKeyServiceImpl.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/model/AiApiKeyServiceImpl.java index efdb967ce..f68527e93 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/model/AiApiKeyServiceImpl.java +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/model/AiApiKeyServiceImpl.java @@ -117,6 +117,7 @@ public class AiApiKeyServiceImpl implements AiApiKeyService { public MidjourneyApi getMidjourneyApi() { AiApiKeyDO apiKey = apiKeyMapper.selectFirstByPlatformAndStatus( AiPlatformEnum.MIDJOURNEY.getPlatform(), CommonStatusEnum.ENABLE.getStatus()); + // todo @芋艿 这些地方直接抛异常会好点,不然调用到的地方都需要做判断 if (apiKey == null) { return null; }