Skip to content

Commit d9ccd5c

Browse files
committed
fix
1 parent ac2bb38 commit d9ccd5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ToolGood.Algorithm/Internals/Functions/FunctionBase.value.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ public override Operand Evaluate(AlgorithmEngine work, Func<string, Operand> tem
349349
var args1 = func1.Evaluate(work, tempParameter);
350350
if (args1.IsError) { return args1; }
351351
if (args1.IsJson) { return args1; }
352+
if (args1.IsArrayJson) { args1 = args1.ToText(); }
352353
if (args1.IsNotText) { return Operand.Error("Function '{0}' parameter is error!", "Json"); }
353354
var txt = args1.TextValue;
354355
if ((txt.StartsWith('{') && txt.EndsWith('}')) || (txt.StartsWith('[') && txt.EndsWith(']'))) {

0 commit comments

Comments
 (0)