This commit is contained in:
YangHua 2024-02-29 22:38:41 +08:00
parent 483068ce52
commit 92932a10e1
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class FormationManager : MonoSingleton<FormationManager>
var result = reciveInfo.Split(separators) // 对字符串进行切割操作 var result = reciveInfo.Split(separators) // 对字符串进行切割操作
.Where(s => !String.IsNullOrWhiteSpace(s) && s != "") // 移除空白或者只包含空格的元素 .Where(s => !String.IsNullOrWhiteSpace(s) && s != "") // 移除空白或者只包含空格的元素
.ToList(); .ToList();
if (result[2] != "" && !string.IsNullOrEmpty(result[2])) if (result.Count > 3)
{ {
if (result[0] == "group") if (result[0] == "group")
{ {