【todo】增加todo

This commit is contained in:
cherishsince 2024-07-02 22:03:32 +08:00
parent 24a9d05179
commit 8f68d64cd7

View File

@ -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;
}