提前拍照
parent
96c71f29d3
commit
c6dd434ec8
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue