CrazyIter_Bin 3 years ago
parent
commit
fe509bea3a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      TEAMModelOS.FunctionV4/ServiceBus/ActiveTaskTopic.cs

+ 5 - 1
TEAMModelOS.FunctionV4/ServiceBus/ActiveTaskTopic.cs

@@ -641,9 +641,13 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
                 element.TryGetProperty("school", out JsonElement _code);
                 string code = "";
                 element.TryGetProperty("Key", out JsonElement key);
-                if (string.IsNullOrWhiteSpace($"{_code}")) {
+                if (string.IsNullOrWhiteSpace($"{_code}"))
+                {
                     code = $"{key}";
                 }
+                else {
+                    code = $"{_code}";
+                }
                 if (string.IsNullOrWhiteSpace(code))
                 {
                     await _dingDing.SendBotMsg($"校本研修生成PDF时,学校id为空\n{msg}", GroupNames.成都开发測試群組);