From 76603510310e542e849affc8bd82dbdd2d6d3c81 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Wed, 1 Feb 2023 15:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=83=8F=E6=89=A9=E5=B1=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E2=80=94=E6=9D=A1=E7=A0=81=E6=8E=A5=E5=8F=A3=E6=9A=82?= =?UTF-8?q?=E6=97=B6=E8=BF=94=E5=9B=9E=E7=A9=BA=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twain/twain/huagaods.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/twain/twain/huagaods.cpp b/twain/twain/huagaods.cpp index b5c1700..9fd8279 100644 --- a/twain/twain/huagaods.cpp +++ b/twain/twain/huagaods.cpp @@ -997,23 +997,22 @@ Twpp::Result huagao_ds::extImageInfoGet(const Identity& origin, ExtImageInfo& da if (id == InfoId::BarCodeCount) { info.allocSimple(Type::UInt32); - *info.items()[0].data() = 2; + *info.items()[0].data() = 0; + } + else if (id == InfoId::BarCodeType) + { + info.allocSimple(Type::UInt32); + *info.items()[0].data() = BarCodeType::ThreeOfNine; } - //else if (id == InfoId::BarCodeType) - //{ - // info.allocSimple(Type::UInt32); - // *info.items()[0].data() = BarCodeType::ThreeOfNine; - //} else if(id == InfoId::BarCodeTextLength) { info.allocSimple(Type::UInt32); - *info.items()[0].data() = 16; + *info.items()[0].data() = 0; } else if (id == InfoId::BarCodeText) { - info.allocSimple(Type::Str255, 2); - info.items()[0].data()->setData("6922868285266"); - info.items()[1].data()->setData("6971513684121"); + //info.allocSimple(Type::Str255, 1); + //info.items()[0].data()->setData(std::to_string(6922868285266 + i).c_str()); } else info.setReturnCode(ReturnCode::InfoNotSupported);