unify-external-plugin-platform 0.0.2-66 → 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 -11
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.umd.js +5 -11
- package/dist/external-plugin.umd.js.map +1 -1
- package/dist/external-plugin.umd.min.js +3 -3
- package/dist/external-plugin.umd.min.js.map +1 -1
- package/package.json +1 -1
@@ -84370,8 +84370,6 @@ var JieYuMethodCode;
|
|
84370
84370
|
JieYuMethodCode["ScannerMainCamera_Base64"] = "main";
|
84371
84371
|
/** 扫描-副摄像头 */
|
84372
84372
|
JieYuMethodCode["ScannerSecondaryCamera_Base64"] = "vice";
|
84373
|
-
/** 自动寻边*/
|
84374
|
-
JieYuMethodCode["AutoFindEdge"] = "findEdge";
|
84375
84373
|
/** 拍照 */
|
84376
84374
|
JieYuMethodCode["TakePhoto_Base64"] = "takePhoto";
|
84377
84375
|
/** 高拍仪读卡 */
|
@@ -84491,17 +84489,16 @@ class JieYueService {
|
|
84491
84489
|
switch (methodCode) {
|
84492
84490
|
case JieYuMethodCode.ScannerMainCamera_Base64:
|
84493
84491
|
// 主摄像头
|
84492
|
+
this.ws.send("vSetResolution(7)");
|
84493
|
+
this.ws.send("bStopPlay()");
|
84494
84494
|
this.ws.send('bStartPlay()');
|
84495
|
-
|
84495
|
+
this.ws.send('bSetMode(3)');
|
84496
|
+
method = 'vSetOpenInpain(1)';
|
84496
84497
|
break;
|
84497
84498
|
case JieYuMethodCode.ScannerSecondaryCamera_Base64:
|
84498
84499
|
// 副摄像头
|
84499
84500
|
method = 'bStartPlay2';
|
84500
84501
|
break;
|
84501
|
-
case JieYuMethodCode.AutoFindEdge:
|
84502
|
-
// 自动寻边
|
84503
|
-
method = 'bSetMode(3)';
|
84504
|
-
break;
|
84505
84502
|
case JieYuMethodCode.TakePhoto_Base64:
|
84506
84503
|
// 拍照
|
84507
84504
|
method = 'bSaveJPGEx';
|
@@ -84592,10 +84589,7 @@ class JieYueService {
|
|
84592
84589
|
// 开启主摄像头/副摄像头
|
84593
84590
|
static async turnOnTheCamera(type) {
|
84594
84591
|
if (this.ws) this.ws.close();
|
84595
|
-
JieYueService.read(HardwareName.ScannerCamera, type);
|
84596
|
-
setTimeout(() => {
|
84597
|
-
JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.AutoFindEdge);
|
84598
|
-
}, 1000);
|
84592
|
+
await JieYueService.read(HardwareName.ScannerCamera, type);
|
84599
84593
|
}
|
84600
84594
|
// 拍照
|
84601
84595
|
static async scanByCamera() {
|