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
@@ -84380,8 +84380,6 @@ var JieYuMethodCode;
|
|
84380
84380
|
JieYuMethodCode["ScannerMainCamera_Base64"] = "main";
|
84381
84381
|
/** 扫描-副摄像头 */
|
84382
84382
|
JieYuMethodCode["ScannerSecondaryCamera_Base64"] = "vice";
|
84383
|
-
/** 自动寻边*/
|
84384
|
-
JieYuMethodCode["AutoFindEdge"] = "findEdge";
|
84385
84383
|
/** 拍照 */
|
84386
84384
|
JieYuMethodCode["TakePhoto_Base64"] = "takePhoto";
|
84387
84385
|
/** 高拍仪读卡 */
|
@@ -84501,17 +84499,16 @@ class JieYueService {
|
|
84501
84499
|
switch (methodCode) {
|
84502
84500
|
case JieYuMethodCode.ScannerMainCamera_Base64:
|
84503
84501
|
// 主摄像头
|
84502
|
+
this.ws.send("vSetResolution(7)");
|
84503
|
+
this.ws.send("bStopPlay()");
|
84504
84504
|
this.ws.send('bStartPlay()');
|
84505
|
-
|
84505
|
+
this.ws.send('bSetMode(3)');
|
84506
|
+
method = 'vSetOpenInpain(1)';
|
84506
84507
|
break;
|
84507
84508
|
case JieYuMethodCode.ScannerSecondaryCamera_Base64:
|
84508
84509
|
// 副摄像头
|
84509
84510
|
method = 'bStartPlay2';
|
84510
84511
|
break;
|
84511
|
-
case JieYuMethodCode.AutoFindEdge:
|
84512
|
-
// 自动寻边
|
84513
|
-
method = 'bSetMode(3)';
|
84514
|
-
break;
|
84515
84512
|
case JieYuMethodCode.TakePhoto_Base64:
|
84516
84513
|
// 拍照
|
84517
84514
|
method = 'bSaveJPGEx';
|
@@ -84602,10 +84599,7 @@ class JieYueService {
|
|
84602
84599
|
// 开启主摄像头/副摄像头
|
84603
84600
|
static async turnOnTheCamera(type) {
|
84604
84601
|
if (this.ws) this.ws.close();
|
84605
|
-
JieYueService.read(HardwareName.ScannerCamera, type);
|
84606
|
-
setTimeout(() => {
|
84607
|
-
JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.AutoFindEdge);
|
84608
|
-
}, 1000);
|
84602
|
+
await JieYueService.read(HardwareName.ScannerCamera, type);
|
84609
84603
|
}
|
84610
84604
|
// 拍照
|
84611
84605
|
static async scanByCamera() {
|