diff --git a/ButcherTraceBack/Controllers/CodeViewController.cs b/ButcherTraceBack/Controllers/CodeViewController.cs index 4776a2d..b5c3316 100644 --- a/ButcherTraceBack/Controllers/CodeViewController.cs +++ b/ButcherTraceBack/Controllers/CodeViewController.cs @@ -23,6 +23,8 @@ namespace ButcherTraceBack.Controllers } else if (info.Code != null && info.Code.Length >= 12) info.Code = info.Code.Substring(info.Code.Length - 6, 6); + if (!string.IsNullOrEmpty(info.TestingNo)) + info.TestingResult = "合格"; return View(info); } }