HiITEdenX 2 년 전
부모
커밋
c7b1fb331d
3개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      TEAMModelOS.FunctionV4/CosmosDB/TriggerVote.cs
  2. 1 0
      TEAMModelOS.FunctionV4/Program.cs
  3. 1 1
      TEAMModelOS.SDK/DI/CoreAPI/CoreAPIHttpService.cs

+ 1 - 1
TEAMModelOS.FunctionV4/CosmosDB/TriggerVote.cs

@@ -384,7 +384,7 @@ namespace TEAMModelOS.FunctionV4
             }
             }
             catch (Exception ex)
             catch (Exception ex)
             {
             {
-                await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}投票活动异常{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
+                await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}投票活动异常{ex.Message}\n{ex.StackTrace}\n{input.ToJsonString()}\n{tdata.ToJsonString()}", GroupNames.醍摩豆服務運維群組);
             }
             }
 
 
         }
         }

+ 1 - 0
TEAMModelOS.FunctionV4/Program.cs

@@ -12,6 +12,7 @@ using System.IO;
 using System.Linq;
 using System.Linq;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices;
 using System.Text;
 using System.Text;
+using System.Text.Json;
 using System.Text.RegularExpressions;
 using System.Text.RegularExpressions;
 using System.Threading.Tasks;
 using System.Threading.Tasks;
 using TEAMModelOS.Models;
 using TEAMModelOS.Models;

+ 1 - 1
TEAMModelOS.SDK/DI/CoreAPI/CoreAPIHttpService.cs

@@ -146,7 +146,7 @@ namespace TEAMModelOS.SDK
                 _httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {token.AccessToken}");
                 _httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {token.AccessToken}");
                 foreach (var group in groups)
                 foreach (var group in groups)
                 {
                 {
-                    string path = $"{rootPath}/Lang/{group.Key}.json";
+                    string path =Path.Combine(rootPath, $"Lang/{group.Key}.json");
                     var sampleJson = File.ReadAllBytes(path).AsSpan();
                     var sampleJson = File.ReadAllBytes(path).AsSpan();
                     Utf8JsonReader reader = new Utf8JsonReader(sampleJson);
                     Utf8JsonReader reader = new Utf8JsonReader(sampleJson);
                     if (JsonDocument.TryParseValue(ref reader, out JsonDocument jsonDoc) && jsonDoc.RootElement.TryGetProperty(notifyCode, out JsonElement json))
                     if (JsonDocument.TryParseValue(ref reader, out JsonDocument jsonDoc) && jsonDoc.RootElement.TryGetProperty(notifyCode, out JsonElement json))