From f757ca6a796adba0587c868e5b6ad132f6539cb5 Mon Sep 17 00:00:00 2001 From: asklie <760956257@qq.com> Date: Fri, 30 Aug 2024 16:37:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dbeta5=E4=B8=8B=E9=9D=A2?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E4=BD=BF=E7=94=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: asklie <760956257@qq.com> --- ohos/src/main/ets/MobileScannerPlugin.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ohos/src/main/ets/MobileScannerPlugin.ets b/ohos/src/main/ets/MobileScannerPlugin.ets index 7af6201..d410023 100644 --- a/ohos/src/main/ets/MobileScannerPlugin.ets +++ b/ohos/src/main/ets/MobileScannerPlugin.ets @@ -249,10 +249,10 @@ export class MobileScannerPlugin implements FlutterPlugin, MethodCallHandler, Ab format: Barcode.convertScanType(item.scanType), type: BarcodeType.unknown, corners: [ - {x: this.scanCodeRect[i].left, y: this.scanCodeRect[i].top}, - {x: this.scanCodeRect[i].right, y: this.scanCodeRect[i].top}, - {x: this.scanCodeRect[i].left, y: this.scanCodeRect[i].bottom}, - {x: this.scanCodeRect[i].right, y: this.scanCodeRect[i].bottom}, + {x: this.scanCodeRect[i]?.left, y: this.scanCodeRect[i]?.top}, + {x: this.scanCodeRect[i]?.right, y: this.scanCodeRect[i]?.top}, + {x: this.scanCodeRect[i]?.left, y: this.scanCodeRect[i]?.bottom}, + {x: this.scanCodeRect[i]?.right, y: this.scanCodeRect[i]?.bottom}, ] } as Barcode; }); -- Gitee