From c6dd434ec8a8da5920ccbd6ccc52402b2f798e49 Mon Sep 17 00:00:00 2001 From: lzq <2495532633@qq.com> Date: Fri, 6 Mar 2026 12:22:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=89=8D=E6=8B=8D=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recognize_processor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/recognize_processor.cpp b/src/recognize_processor.cpp index 18a85ce..89a846a 100644 --- a/src/recognize_processor.cpp +++ b/src/recognize_processor.cpp @@ -50,15 +50,14 @@ namespace zsy { Application::deviceHolder->getSoundColumn(sn)->play("正在称重,请稍后"); }); + auto bodyImageFile = Application::deviceHolder->getVidicon(sn)->photograph(); - auto weight = Application::deviceHolder->getPlatformScale(sn)->reading(); + const auto weight = Application::deviceHolder->getPlatformScale(sn)->reading(); std::string date = DateUtil::format(Ymd); auto photoId = Snowflake::genIdStr(); - auto bodyImageFile = Application::deviceHolder->getVidicon(sn)->photograph(); - auto [carFrontUrlSucc,carFrontUrl] = Application::oss->upload(date + "/" + "front_" + photoId + ".jpg", frontImageFile); auto [carBodyUrlSucc,carBodyUrl] = Application::oss->upload(date + "/" + "body_" + photoId + ".jpg", bodyImageFile);