Ver Fonte

update .

CrazyIter_Bin há 3 anos atrás
pai
commit
fe509bea3a
1 ficheiros alterados com 5 adições e 1 exclusões
  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);
                 element.TryGetProperty("school", out JsonElement _code);
                 string code = "";
                 string code = "";
                 element.TryGetProperty("Key", out JsonElement key);
                 element.TryGetProperty("Key", out JsonElement key);
-                if (string.IsNullOrWhiteSpace($"{_code}")) {
+                if (string.IsNullOrWhiteSpace($"{_code}"))
+                {
                     code = $"{key}";
                     code = $"{key}";
                 }
                 }
+                else {
+                    code = $"{_code}";
+                }
                 if (string.IsNullOrWhiteSpace(code))
                 if (string.IsNullOrWhiteSpace(code))
                 {
                 {
                     await _dingDing.SendBotMsg($"校本研修生成PDF时,学校id为空\n{msg}", GroupNames.成都开发測試群組);
                     await _dingDing.SendBotMsg($"校本研修生成PDF时,学校id为空\n{msg}", GroupNames.成都开发測試群組);