|
@@ -250,7 +250,7 @@ namespace TEAMModelBI.Controllers.DingDingStruc
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 获取当前应用的
|
|
|
+ /// 获取所有的应用链接秘钥,以及当前应用链接秘钥
|
|
|
/// </summary>
|
|
|
/// <param name="jsonElement"></param>
|
|
|
/// <returns></returns>
|
|
@@ -282,21 +282,31 @@ namespace TEAMModelBI.Controllers.DingDingStruc
|
|
|
return Ok(new { state = 200, allConfigs, currentSysConfig });
|
|
|
}
|
|
|
else {
|
|
|
- currentSysConfig.site = currentSite;
|
|
|
- currentSysConfig.nickName = currentSite;
|
|
|
+ currentSysConfig = new SysConfig();
|
|
|
+ currentSysConfig.site = $"{currentSite}";
|
|
|
+ currentSysConfig.nickName = $"{currentSite}";
|
|
|
currentSysConfig.proDeptId = long.Parse(_configuration["CustomParam:proDeptId"]);
|
|
|
|
|
|
- currentSysConfig.clientKey.clientID = _configuration["HaBookAuth:CoreService:clientID"];
|
|
|
- currentSysConfig.clientKey.clientSecret = _configuration["HaBookAuth:CoreService:clientSecret"];
|
|
|
+ currentSysConfig.clientKey = new()
|
|
|
+ {
|
|
|
+ clientID = _configuration["HaBookAuth:CoreService:clientID"],
|
|
|
+ clientSecret = _configuration["HaBookAuth:CoreService:clientSecret"]
|
|
|
+ };
|
|
|
|
|
|
- currentSysConfig.dDAuth.agentId = _configuration["DingDingAuth:Agentld"];
|
|
|
- currentSysConfig.dDAuth.appKey = _configuration["DingDingAuth:appKey"];
|
|
|
- currentSysConfig.dDAuth.appSecret = _configuration["DingDingAuth:appSecret"];
|
|
|
+ currentSysConfig.dDAuth = new()
|
|
|
+ {
|
|
|
+ agentId = _configuration["DingDingAuth:Agentld"],
|
|
|
+ appKey = _configuration["DingDingAuth:appKey"],
|
|
|
+ appSecret = _configuration["DingDingAuth:appSecret"]
|
|
|
+ };
|
|
|
|
|
|
- currentSysConfig.azureClient.storage = _configuration["Azure:Storage:ConnectionString"];
|
|
|
- currentSysConfig.azureClient.cosmos = _configuration["Azure:Cosmos:ConnectionString"];
|
|
|
- currentSysConfig.azureClient.redis = _configuration["Azure:Redis:ConnectionString"];
|
|
|
- currentSysConfig.azureClient.servicBus = _configuration["Azure:ServiceBus:ConnectionString"];
|
|
|
+ currentSysConfig.azureClient = new()
|
|
|
+ {
|
|
|
+ storage = _configuration["Azure:Storage:ConnectionString"],
|
|
|
+ cosmos = _configuration["Azure:Cosmos:ConnectionString"],
|
|
|
+ redis = _configuration["Azure:Redis:ConnectionString"],
|
|
|
+ servicBus = _configuration["Azure:ServiceBus:ConnectionString"]
|
|
|
+ };
|
|
|
|
|
|
return Ok(new { state = 201, allConfigs, currentSysConfig });
|
|
|
}
|