|
@@ -20,10 +20,10 @@ namespace Controllers
|
|
|
|
|
|
|
|
|
|
|
|
|
[Route("/noauth/pub/test")]
|
|
[Route("/noauth/pub/test")]
|
|
|
- public async Task<string> test()
|
|
|
|
|
|
|
+ public bool test()
|
|
|
{
|
|
{
|
|
|
- bool result = await CSharpScript.EvaluateAsync<bool>("!string.IsNullOrEmpty(\"\")");
|
|
|
|
|
- return "ok";
|
|
|
|
|
|
|
+ bool result = Utils.EvaluateBoolean("'2025-02-01'>'2025-01-01'");
|
|
|
|
|
+ return result;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|