style: format

This commit is contained in:
Fu Diwei
2022-05-06 20:29:27 +08:00
parent d364c1a354
commit 7e6cfa5ca3
2352 changed files with 3542 additions and 4198 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Text.Json;
@@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
static TestConfigs()
{
// NOTICE: 请在项目根目录下按照 appsettings.json 的格式新建 appsettings.local.json 填入测试参数。
// WARNING: 请在 DEBUG 模式下运行测试用例。
// WARNING: 请在 DEBUG 模式下运行测试用例。
// WARNING: 敏感信息请不要提交到 git
try
@@ -19,7 +19,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
var config = jdoc.RootElement.GetProperty("TestConfig");
WechatCorpId = config.GetProperty("CorpId").GetString()!;
WechatAgentId = int.Parse(config.GetProperty("AgentId").GetString())!;
WechatAgentId = int.Parse(config.GetProperty("AgentId").GetString()!);
WechatAgentSecret = config.GetProperty("AgentSecret").GetString()!;
WechatAccessToken = config.GetProperty("AccessToken").GetString()!;