Browse Source

bug fix

test
smallchill 6 years ago
parent
commit
14189bd7e5
  1. 6
      blade-ops/blade-flow/src/main/java/org/springblade/flow/engine/utils/FlowCache.java

6
blade-ops/blade-flow/src/main/java/org/springblade/flow/engine/utils/FlowCache.java

@ -63,10 +63,12 @@ public class FlowCache {
* @return * @return
*/ */
public static String getCategoryName(String category) { public static String getCategoryName(String category) {
if (Func.isEmpty(category)) { String[] categoryArr = category.split(StringPool.UNDERSCORE);
if (categoryArr.length <= 1) {
return StringPool.EMPTY; return StringPool.EMPTY;
} else {
return DictCache.getValue(category.split(StringPool.UNDERSCORE)[0], Func.toInt(category.split(StringPool.UNDERSCORE)[1]));
} }
return DictCache.getValue(category.split(StringPool.UNDERSCORE)[0], Func.toInt(category.split(StringPool.UNDERSCORE)[1]));
} }
} }

Loading…
Cancel
Save