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);