|
|
|
@ -342,6 +342,61 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 关联minio
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public async Task<Response<int>> RefMinio(Zhibo zhiboReq)
|
|
|
|
|
{
|
|
|
|
|
Response<int> response = new Response<int>();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var videoids = zhiboReq.videoId.Split("/");
|
|
|
|
|
var topicRequest = $"thing/product/" + videoids[0] + "/requests_reply";
|
|
|
|
|
var requestData = new
|
|
|
|
|
{
|
|
|
|
|
bid = Guid.NewGuid().ToString(),
|
|
|
|
|
method = "storage_config_get",
|
|
|
|
|
tid = Guid.NewGuid().ToString(),
|
|
|
|
|
timestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
|
|
|
|
data = new
|
|
|
|
|
{
|
|
|
|
|
output = new {
|
|
|
|
|
bucket= "test",
|
|
|
|
|
credentials= new {
|
|
|
|
|
access_key_id= "minioadmin",
|
|
|
|
|
access_key_secret = "minioadmin",
|
|
|
|
|
expire= 3600,
|
|
|
|
|
security_token= "security_token"
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
endpoint = "175.27.168.120:6013",
|
|
|
|
|
object_key_prefix= "",
|
|
|
|
|
provider = "ali",
|
|
|
|
|
region= "hz"
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
result= 0
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
response.Result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
response.Code = 500;
|
|
|
|
|
response.Message = ex.Message;
|
|
|
|
|
}
|
|
|
|
|
return response;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 开始直播
|
|
|
|
|