优化switch case条件

pull/186/MERGE
RuoYi 3 years ago
parent 386f3eb016
commit 24376681b8

@ -561,17 +561,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:

Loading…
Cancel
Save