Selaa lähdekoodia

Update 优化行为标签的导入

YueYunyun 1 vuosi sitten
vanhempi
sitoutus
80ddb44ad9

+ 7 - 1
SourceCode/We.Platform/WePlatform.Application/WeLib/Scene/SceneApplicationService.cs

@@ -696,7 +696,13 @@ namespace WePlatform.WeLib.Scene
                         columnIndex++;
                         behavior.SceneCategory = GetTypeNo(row.GenerateCell(columnIndex).StringCellValue ?? "");
                         columnIndex++;
-                        behavior.BehaviorTag = row.GenerateCell(columnIndex).StringCellValue ?? "";
+                        var behaviorTag = row.GenerateCell(columnIndex).StringCellValue ?? "";
+                        behaviorTag= behaviorTag.Trim().Replace(",",",");
+                        while (behaviorTag.Contains(",,"))
+                        {
+                            behaviorTag= behaviorTag.Trim().Replace(",,",",");
+                        }
+                        behavior.BehaviorTag = behaviorTag;
                         columnIndex++;
                         behavior.Description = description;
                         columnIndex++;

BIN
SourceCode/We.Platform/WePlatform.Web/Download/Excel/Scene/SceneTemplate.xlsx