fix: 修复了break问题

This commit is contained in:
alivender
2025-07-17 14:49:20 +08:00
parent fb13a5c484
commit e4ead72d53
4 changed files with 58 additions and 48 deletions

View File

@@ -371,6 +371,10 @@ public class VideoStreamController : ControllerBase
/// </summary>
/// <returns>初始化结果</returns>
[HttpPost("InitAutoFocus")]
[EnableCors("Users")]
[ProducesResponseType(typeof(object), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(object), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
public async Task<IResult> InitAutoFocus()
{
try
@@ -412,6 +416,10 @@ public class VideoStreamController : ControllerBase
/// </summary>
/// <returns>对焦结果</returns>
[HttpPost("AutoFocus")]
[EnableCors("Users")]
[ProducesResponseType(typeof(object), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(object), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
public async Task<IResult> AutoFocus()
{
try