From 804618b12bed0a6d4fef0b03efdadccb6cd286f2 Mon Sep 17 00:00:00 2001 From: huyufei Date: Mon, 1 Jul 2024 18:41:22 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=AE=8C=E5=96=84=20JsonBuilder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/GuruJsonBuilder/GuruServiceJsonBuilder.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Editor/GuruJsonBuilder/GuruServiceJsonBuilder.cs b/Editor/GuruJsonBuilder/GuruServiceJsonBuilder.cs index aec3de3..fbfe5b9 100644 --- a/Editor/GuruJsonBuilder/GuruServiceJsonBuilder.cs +++ b/Editor/GuruJsonBuilder/GuruServiceJsonBuilder.cs @@ -1,5 +1,4 @@ - - +#if GURU_SDK_DEV namespace Guru.Editor { @@ -618,10 +617,10 @@ namespace Guru.Editor line = lines[i]; if(string.IsNullOrEmpty(line)) continue; raw = lines[i].Split(','); - key = ""; value = ""; key = raw[0]; - if(raw.Length > 0) value = raw[1]; + if(string.IsNullOrEmpty(key)) continue; + if(raw.Length > 1) value = raw[1]; dict[key] = value; i++; } @@ -823,8 +822,6 @@ namespace Guru.Editor #endregion - - #region TEST #if GURU_SDK_DEV @@ -860,6 +857,7 @@ namespace Guru.Editor } #endregion - } -} \ No newline at end of file +} + +#endif \ No newline at end of file