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