This commit is contained in:
2024-11-20 09:08:00 +08:00
parent f1abdbc6d0
commit 9300d77ab0
181 changed files with 28244 additions and 119 deletions
+14
View File
@@ -380,5 +380,19 @@
}
}
#endregion
public static int getPassScoreForApi()
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
int passScore = 80;
var testRule = db.Sys_TestRule.FirstOrDefault();
if (testRule != null)
{
passScore = testRule.PassingScore;
}
return passScore;
}
}
}
}