unify-external-plugin-platform 0.0.2-67 → 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 -14
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.umd.js +5 -14
- 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
@@ -84380,10 +84380,6 @@ var JieYuMethodCode;
|
|
84380
84380
|
JieYuMethodCode["ScannerMainCamera_Base64"] = "main";
|
84381
84381
|
/** 扫描-副摄像头 */
|
84382
84382
|
JieYuMethodCode["ScannerSecondaryCamera_Base64"] = "vice";
|
84383
|
-
/** 自动寻边 */
|
84384
|
-
JieYuMethodCode["AutoFindEdge"] = "findEdge";
|
84385
|
-
/** 去黑边 */
|
84386
|
-
JieYuMethodCode["SetDelBlackTrimming"] = "setDelBlackTrimming";
|
84387
84383
|
/** 拍照 */
|
84388
84384
|
JieYuMethodCode["TakePhoto_Base64"] = "takePhoto";
|
84389
84385
|
/** 高拍仪读卡 */
|
@@ -84503,20 +84499,18 @@ class JieYueService {
|
|
84503
84499
|
switch (methodCode) {
|
84504
84500
|
case JieYuMethodCode.ScannerMainCamera_Base64:
|
84505
84501
|
// 主摄像头
|
84502
|
+
this.ws.send("vSetResolution(7)");
|
84503
|
+
this.ws.send("bStopPlay()");
|
84506
84504
|
this.ws.send('bStartPlay()');
|
84507
|
-
|
84505
|
+
this.ws.send('bSetMode(3)');
|
84506
|
+
method = 'vSetOpenInpain(1)';
|
84508
84507
|
break;
|
84509
84508
|
case JieYuMethodCode.ScannerSecondaryCamera_Base64:
|
84510
84509
|
// 副摄像头
|
84511
84510
|
method = 'bStartPlay2';
|
84512
84511
|
break;
|
84513
|
-
case JieYuMethodCode.AutoFindEdge:
|
84514
|
-
// 自动寻边
|
84515
|
-
method = 'bSetMode(3)';
|
84516
|
-
break;
|
84517
84512
|
case JieYuMethodCode.TakePhoto_Base64:
|
84518
84513
|
// 拍照
|
84519
|
-
this.ws.send('vSetDelHBFlag(true)');
|
84520
84514
|
method = 'bSaveJPGEx';
|
84521
84515
|
break;
|
84522
84516
|
case JieYuMethodCode.ScannerReadCard:
|
@@ -84605,10 +84599,7 @@ class JieYueService {
|
|
84605
84599
|
// 开启主摄像头/副摄像头
|
84606
84600
|
static async turnOnTheCamera(type) {
|
84607
84601
|
if (this.ws) this.ws.close();
|
84608
|
-
JieYueService.read(HardwareName.ScannerCamera, type);
|
84609
|
-
setTimeout(() => {
|
84610
|
-
JieYueService.read(HardwareName.ScannerCamera, JieYuMethodCode.AutoFindEdge);
|
84611
|
-
}, 1000);
|
84602
|
+
await JieYueService.read(HardwareName.ScannerCamera, type);
|
84612
84603
|
}
|
84613
84604
|
// 拍照
|
84614
84605
|
static async scanByCamera() {
|