unify-external-plugin-platform 0.0.2-67 → 0.0.2-68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/external-plugin.common.js +5 -14
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.umd.js +5 -14
- package/dist/external-plugin.umd.js.map +1 -1
- package/dist/external-plugin.umd.min.js +1 -1
- package/dist/external-plugin.umd.min.js.map +1 -1
- package/package.json +1 -1
@@ -84370,10 +84370,6 @@ var JieYuMethodCode;
|
|
84370
84370
|
JieYuMethodCode["ScannerMainCamera_Base64"] = "main";
|
84371
84371
|
/** 扫描-副摄像头 */
|
84372
84372
|
JieYuMethodCode["ScannerSecondaryCamera_Base64"] = "vice";
|
84373
|
-
/** 自动寻边 */
|
84374
|
-
JieYuMethodCode["AutoFindEdge"] = "findEdge";
|
84375
|
-
/** 去黑边 */
|
84376
|
-
JieYuMethodCode["SetDelBlackTrimming"] = "setDelBlackTrimming";
|
84377
84373
|
/** 拍照 */
|
84378
84374
|
JieYuMethodCode["TakePhoto_Base64"] = "takePhoto";
|
84379
84375
|
/** 高拍仪读卡 */
|
@@ -84493,20 +84489,18 @@ class JieYueService {
|
|
84493
84489
|
switch (methodCode) {
|
84494
84490
|
case JieYuMethodCode.ScannerMainCamera_Base64:
|
84495
84491
|
// 主摄像头
|
84492
|
+
this.ws.send("vSetResolution(7)");
|
84493
|
+
this.ws.send("bStopPlay()");
|
84496
84494
|
this.ws.send('bStartPlay()');
|
84497
|
-
|
84495
|
+
this.ws.send('bSetMode(3)');
|
84496
|
+
method = 'vSetOpenInpain(1)';
|
84498
84497
|
break;
|
84499
84498
|
case JieYuMethodCode.ScannerSecondaryCamera_Base64:
|
84500
84499
|
// 副摄像头
|
84501
84500
|
method = 'bStartPlay2';
|
84502
84501
|
break;
|
84503
|
-
case JieYuMethodCode.AutoFindEdge:
|
84504
|
-
// 自动寻边
|
84505
|
-
method = 'bSetMode(3)';
|
84506
|
-
break;
|
84507
84502
|
case JieYuMethodCode.TakePhoto_Base64:
|
84508
84503
|
// 拍照
|
84509
|
-
this.ws.send('vSetDelHBFlag(true)');
|
84510
84504
|
method = 'bSaveJPGEx';
|
84511
84505
|
break;
|
84512
84506
|
case JieYuMethodCode.ScannerReadCard:
|
@@ -84595,10 +84589,7 @@ class JieYueService {
|
|
84595
84589
|
// 开启主摄像头/副摄像头
|
84596
84590
|
static async turnOnTheCamera(type) {
|
84597
84591
|
if (this.ws) this.ws.close();
|
84598
|
-
JieYueService.read(HardwareName.ScannerCamera, type);
|
84599
|
-
setTimeout(() => {
|
84600
|
-
JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.AutoFindEdge);
|
84601
|
-
}, 1000);
|
84592
|
+
await JieYueService.read(HardwareName.ScannerCamera, type);
|
84602
84593
|
}
|
84603
84594
|
// 拍照
|
84604
84595
|
static async scanByCamera() {
|