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
@@ -84380,6 +84380,8 @@ var JieYuMethodCode;
|
|
84380
84380
|
JieYuMethodCode["ScannerMainCamera_Base64"] = "main";
|
84381
84381
|
/** 扫描-副摄像头 */
|
84382
84382
|
JieYuMethodCode["ScannerSecondaryCamera_Base64"] = "vice";
|
84383
|
+
/** 自动寻边*/
|
84384
|
+
JieYuMethodCode["AutoFindEdge"] = "findEdge";
|
84383
84385
|
/** 拍照 */
|
84384
84386
|
JieYuMethodCode["TakePhoto_Base64"] = "takePhoto";
|
84385
84387
|
/** 高拍仪读卡 */
|
@@ -84506,6 +84508,10 @@ class JieYueService {
|
|
84506
84508
|
// 副摄像头
|
84507
84509
|
method = 'bStartPlay2';
|
84508
84510
|
break;
|
84511
|
+
case JieYuMethodCode.AutoFindEdge:
|
84512
|
+
// 自动寻边
|
84513
|
+
method = 'bSetMode(3)';
|
84514
|
+
break;
|
84509
84515
|
case JieYuMethodCode.TakePhoto_Base64:
|
84510
84516
|
// 拍照
|
84511
84517
|
method = 'bSaveJPGEx';
|
@@ -84596,11 +84602,14 @@ class JieYueService {
|
|
84596
84602
|
// 开启主摄像头/副摄像头
|
84597
84603
|
static async turnOnTheCamera(type) {
|
84598
84604
|
if (this.ws) this.ws.close();
|
84599
|
-
|
84605
|
+
JieYueService.read(HardwareName.ScannerCamera, type);
|
84606
|
+
setTimeout(() => {
|
84607
|
+
JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.AutoFindEdge);
|
84608
|
+
}, 1000);
|
84600
84609
|
}
|
84601
84610
|
// 拍照
|
84602
84611
|
static async scanByCamera() {
|
84603
|
-
if (this.ws) this.ws.close();
|
84612
|
+
// if (this.ws) this.ws.close();
|
84604
84613
|
let res = await JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.TakePhoto_Base64);
|
84605
84614
|
return res.replace('BeginbSaveJPGEx', '').replace('EndbSaveJPGEx', '');
|
84606
84615
|
}
|