From 58f92d97036a7384a2124a4e62f8cd408a368809 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 10 Apr 2025 11:36:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E5=BC=80=E7=AB=99?= =?UTF-8?q?=E5=BC=95=E5=AF=BC=E7=B3=BB=E7=BB=9F=E9=87=8D=E7=BD=AE=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/common/controller/bootloader.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/modules/common/controller/bootloader.go b/src/modules/common/controller/bootloader.go index 9ce9f64a..f7425bca 100644 --- a/src/modules/common/controller/bootloader.go +++ b/src/modules/common/controller/bootloader.go @@ -112,15 +112,15 @@ func (s *BootloaderController) Done(c *gin.Context) { // DELETE / func (s *BootloaderController) Reset(c *gin.Context) { // 是否完成引导 - launchInfo := machine.LaunchInfo - if launchInfo == nil { - c.JSON(200, resp.Err(nil)) - return - } - if v, ok := launchInfo[constants.LAUNCH_BOOTLOADER]; ok && v.(bool) { - c.JSON(200, resp.ErrMsg("bootloader not done")) - return - } + // launchInfo := machine.LaunchInfo + // if launchInfo == nil { + // c.JSON(200, resp.Err(nil)) + // return + // } + // if v, ok := launchInfo[constants.LAUNCH_BOOTLOADER]; ok && v.(bool) { + // c.JSON(200, resp.ErrMsg("bootloader not done")) + // return + // } if err := machine.Reset(); err != nil { c.JSON(200, resp.ErrMsg(err.Error()))