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