Browse Source

修改逻辑

CrazyIter_Bin 3 years ago
parent
commit
4a29526825
1 changed files with 1 additions and 1 deletions
  1. 1 1
      TEAMModelOS/Controllers/Paper/SheetConfigController.cs

+ 1 - 1
TEAMModelOS/Controllers/Paper/SheetConfigController.cs

@@ -214,7 +214,7 @@ namespace TEAMModelOS.Controllers.Common
                 if (!_paperId.ValueKind.Equals(JsonValueKind.Null) && !_examId.ValueKind.Equals(JsonValueKind.Null) && !string.IsNullOrEmpty($"{ _examId}") && !string.IsNullOrEmpty($"{ _paperId}"))
                 if (!_paperId.ValueKind.Equals(JsonValueKind.Null) && !_examId.ValueKind.Equals(JsonValueKind.Null) && !string.IsNullOrEmpty($"{ _examId}") && !string.IsNullOrEmpty($"{ _paperId}"))
                 {
                 {
                     string code = "";
                     string code = "";
-                    if (string.IsNullOrEmpty($"{_owner}") && $"{_owner}".Equals("school", StringComparison.OrdinalIgnoreCase)) {
+                    if (!string.IsNullOrEmpty($"{_owner}") && $"{_owner}".Equals("school", StringComparison.OrdinalIgnoreCase)) {
                         code = $"Exam-{sheet.school}";
                         code = $"Exam-{sheet.school}";
                         sheet.scope = "school";
                         sheet.scope = "school";
                     }
                     }