unify-external-plugin-platform 0.0.2-63 → 0.0.2-67
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 +14 -2
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.umd.js +14 -2
- 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,6 +84370,10 @@ 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";
|
84373
84377
|
/** 拍照 */
|
84374
84378
|
JieYuMethodCode["TakePhoto_Base64"] = "takePhoto";
|
84375
84379
|
/** 高拍仪读卡 */
|
@@ -84496,8 +84500,13 @@ class JieYueService {
|
|
84496
84500
|
// 副摄像头
|
84497
84501
|
method = 'bStartPlay2';
|
84498
84502
|
break;
|
84503
|
+
case JieYuMethodCode.AutoFindEdge:
|
84504
|
+
// 自动寻边
|
84505
|
+
method = 'bSetMode(3)';
|
84506
|
+
break;
|
84499
84507
|
case JieYuMethodCode.TakePhoto_Base64:
|
84500
84508
|
// 拍照
|
84509
|
+
this.ws.send('vSetDelHBFlag(true)');
|
84501
84510
|
method = 'bSaveJPGEx';
|
84502
84511
|
break;
|
84503
84512
|
case JieYuMethodCode.ScannerReadCard:
|
@@ -84586,11 +84595,14 @@ class JieYueService {
|
|
84586
84595
|
// 开启主摄像头/副摄像头
|
84587
84596
|
static async turnOnTheCamera(type) {
|
84588
84597
|
if (this.ws) this.ws.close();
|
84589
|
-
|
84598
|
+
JieYueService.read(HardwareName.ScannerCamera, type);
|
84599
|
+
setTimeout(() => {
|
84600
|
+
JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.AutoFindEdge);
|
84601
|
+
}, 1000);
|
84590
84602
|
}
|
84591
84603
|
// 拍照
|
84592
84604
|
static async scanByCamera() {
|
84593
|
-
if (this.ws) this.ws.close();
|
84605
|
+
// if (this.ws) this.ws.close();
|
84594
84606
|
let res = await JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.TakePhoto_Base64);
|
84595
84607
|
return res.replace('BeginbSaveJPGEx', '').replace('EndbSaveJPGEx', '');
|
84596
84608
|
}
|