|
@@ -94,19 +94,19 @@ namespace TEAMModelBI.Controllers.BITable
|
|
|
[ProducesDefaultResponseType]
|
|
|
[AuthToken(Roles = "admin,rdc,assist,sales,company")]
|
|
|
[HttpPost("set-api")]
|
|
|
- public async Task<IActionResult> SetOpenApi(BIOpenApi openApi, [FromHeader] string site)
|
|
|
+ public async Task<IActionResult> SetOpenApi(BIOpenApi openApi/*, [FromHeader] string site*/)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
|
var tableClient = _azureStorage.GetCloudTableClient();
|
|
|
var blobClient = _azureStorage.GetBlobContainerClient(containerName: "0-public");
|
|
|
- if ($"{site}".Equals(BIConst.Global))
|
|
|
- {
|
|
|
- cosmosClient = _azureCosmos.GetCosmosClient(name: BIConst.Global);
|
|
|
- tableClient = _azureStorage.GetCloudTableClient(BIConst.Global);
|
|
|
- blobClient = _azureStorage.GetBlobContainerClient(containerName: "0-public", BIConst.Global);
|
|
|
- }
|
|
|
+ //if ($"{site}".Equals(BIConst.Global))
|
|
|
+ //{
|
|
|
+ // cosmosClient = _azureCosmos.GetCosmosClient(name: BIConst.Global);
|
|
|
+ // tableClient = _azureStorage.GetCloudTableClient(BIConst.Global);
|
|
|
+ // blobClient = _azureStorage.GetBlobContainerClient(containerName: "0-public", BIConst.Global);
|
|
|
+ //}
|
|
|
var (loginId, loginName, pic, did, dname, dpic) = HttpJwtAnalysis.JwtXAuthBI(HttpContext.GetXAuth("AuthToken"), _option);
|
|
|
StringBuilder strMsg = new($"{loginName}【{loginId}】");
|
|
|
string type = "";
|