|
@@ -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.成都开发測試群組);
|