|
@@ -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))
|