优化switch case条件

This commit is contained in:
RuoYi 2022-05-20 16:23:36 +08:00
parent a7e16d582d
commit 4a0619cadb
1 changed files with 2 additions and 7 deletions

View File

@ -562,17 +562,12 @@ public class Convert
switch (valueStr)
{
case "true":
return true;
case "false":
return false;
case "yes":
return true;
case "ok":
return true;
case "no":
return false;
case "1":
return true;
case "false":
case "no":
case "0":
return false;
default: