From 13b18039db88700eed5a5aef354c70a185d97d26 Mon Sep 17 00:00:00 2001 From: dragove Date: Thu, 2 May 2024 21:08:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E7=BD=AE=E7=A9=BA=E4=BD=9C=E4=B8=9A=E9=9B=86=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=88=96=E8=80=85=E4=BD=9C=E4=B8=9Aid=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/plus/maa/backend/service/CopilotSetService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/plus/maa/backend/service/CopilotSetService.kt b/src/main/kotlin/plus/maa/backend/service/CopilotSetService.kt index 1af607c8..6abec63f 100644 --- a/src/main/kotlin/plus/maa/backend/service/CopilotSetService.kt +++ b/src/main/kotlin/plus/maa/backend/service/CopilotSetService.kt @@ -83,13 +83,13 @@ class CopilotSetService( if (!req.name.isNullOrBlank()) { copilotSet.name = req.name } - if (!req.description.isNullOrBlank()) { + if (req.description != null) { copilotSet.description = req.description } if (req.status != null) { copilotSet.status = req.status } - if (!req.copilotIds.isNullOrEmpty()) { + if (req.copilotIds != null) { copilotSet.copilotIds = req.copilotIds copilotSet.distinctIdsAndCheck() }