提前拍照

master
lzq 2026-03-06 12:22:43 +08:00
parent 96c71f29d3
commit c6dd434ec8
1 changed files with 2 additions and 3 deletions

View File

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