unify-external-plugin-platform 0.0.3-10 → 0.0.3-11

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.
@@ -84252,33 +84252,43 @@ class eloam_plugin_service_ELoamPassService {
84252
84252
  break;
84253
84253
  case eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64:
84254
84254
  // rotate: 旋转角度;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
84255
- url = this.baseServiceUrl + '/video=grabimage';
84256
- param = {
84257
- filepath: "base64",
84258
- rotate: "0",
84259
- deskew: data,
84260
- deskewval: "20",
84261
- camidx: "0",
84262
- ColorMode: "0",
84263
- quality: "0",
84264
- bIsPrint1to1: "0"
84265
- };
84266
- requestType = 'post';
84255
+ if (this._isLinux) {
84256
+ url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
84257
+ requestType = 'get';
84258
+ } else {
84259
+ url = this.baseServiceUrl + '/video=grabimage';
84260
+ param = {
84261
+ filepath: "base64",
84262
+ rotate: "0",
84263
+ deskew: data,
84264
+ deskewval: "20",
84265
+ camidx: "0",
84266
+ ColorMode: "0",
84267
+ quality: "0",
84268
+ bIsPrint1to1: "0"
84269
+ };
84270
+ requestType = 'post';
84271
+ }
84267
84272
  break;
84268
84273
  case eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64:
84269
- // rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
84270
- url = this.baseServiceUrl + '/video=grabimage';
84271
- param = {
84272
- filepath: "",
84273
- rotate: "0",
84274
- deskew: "0",
84275
- deskewval: "0",
84276
- camidx: "1",
84277
- ColorMode: "0",
84278
- quality: "0",
84279
- bIsPrint1to1: "0"
84280
- };
84281
- requestType = 'post';
84274
+ if (this._isLinux) {
84275
+ url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
84276
+ requestType = 'get';
84277
+ } else {
84278
+ // rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
84279
+ url = this.baseServiceUrl + '/video=grabimage';
84280
+ param = {
84281
+ filepath: "",
84282
+ rotate: "0",
84283
+ deskew: "0",
84284
+ deskewval: "0",
84285
+ camidx: "1",
84286
+ ColorMode: "0",
84287
+ quality: "0",
84288
+ bIsPrint1to1: "0"
84289
+ };
84290
+ requestType = 'post';
84291
+ }
84282
84292
  break;
84283
84293
  case eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64:
84284
84294
  url = this.baseServiceUrl + '/card=idcard';
@@ -84301,7 +84311,7 @@ class eloam_plugin_service_ELoamPassService {
84301
84311
  static async scanByMainCamera(deskew) {
84302
84312
  const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64, deskew);
84303
84313
  if (this._isLinux) {
84304
- return res; // 国产
84314
+ return res.data.img; // 国产
84305
84315
  } else {
84306
84316
  return res.photoBase64;
84307
84317
  }
@@ -84309,7 +84319,11 @@ class eloam_plugin_service_ELoamPassService {
84309
84319
  /** 副摄像头拍照 */
84310
84320
  static async scanBySecondaryCamera() {
84311
84321
  const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64);
84312
- return res.photoBase64;
84322
+ if (this._isLinux) {
84323
+ return res.data.img; // 国产
84324
+ } else {
84325
+ return res.photoBase64;
84326
+ }
84313
84327
  }
84314
84328
  static async mergeImage(list, type) {
84315
84329
  const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraMerge_Base64, {
@@ -84262,33 +84262,43 @@ class eloam_plugin_service_ELoamPassService {
84262
84262
  break;
84263
84263
  case eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64:
84264
84264
  // rotate: 旋转角度;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
84265
- url = this.baseServiceUrl + '/video=grabimage';
84266
- param = {
84267
- filepath: "base64",
84268
- rotate: "0",
84269
- deskew: data,
84270
- deskewval: "20",
84271
- camidx: "0",
84272
- ColorMode: "0",
84273
- quality: "0",
84274
- bIsPrint1to1: "0"
84275
- };
84276
- requestType = 'post';
84265
+ if (this._isLinux) {
84266
+ url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
84267
+ requestType = 'get';
84268
+ } else {
84269
+ url = this.baseServiceUrl + '/video=grabimage';
84270
+ param = {
84271
+ filepath: "base64",
84272
+ rotate: "0",
84273
+ deskew: data,
84274
+ deskewval: "20",
84275
+ camidx: "0",
84276
+ ColorMode: "0",
84277
+ quality: "0",
84278
+ bIsPrint1to1: "0"
84279
+ };
84280
+ requestType = 'post';
84281
+ }
84277
84282
  break;
84278
84283
  case eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64:
84279
- // rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
84280
- url = this.baseServiceUrl + '/video=grabimage';
84281
- param = {
84282
- filepath: "",
84283
- rotate: "0",
84284
- deskew: "0",
84285
- deskewval: "0",
84286
- camidx: "1",
84287
- ColorMode: "0",
84288
- quality: "0",
84289
- bIsPrint1to1: "0"
84290
- };
84291
- requestType = 'post';
84284
+ if (this._isLinux) {
84285
+ url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
84286
+ requestType = 'get';
84287
+ } else {
84288
+ // rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
84289
+ url = this.baseServiceUrl + '/video=grabimage';
84290
+ param = {
84291
+ filepath: "",
84292
+ rotate: "0",
84293
+ deskew: "0",
84294
+ deskewval: "0",
84295
+ camidx: "1",
84296
+ ColorMode: "0",
84297
+ quality: "0",
84298
+ bIsPrint1to1: "0"
84299
+ };
84300
+ requestType = 'post';
84301
+ }
84292
84302
  break;
84293
84303
  case eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64:
84294
84304
  url = this.baseServiceUrl + '/card=idcard';
@@ -84311,7 +84321,7 @@ class eloam_plugin_service_ELoamPassService {
84311
84321
  static async scanByMainCamera(deskew) {
84312
84322
  const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64, deskew);
84313
84323
  if (this._isLinux) {
84314
- return res; // 国产
84324
+ return res.data.img; // 国产
84315
84325
  } else {
84316
84326
  return res.photoBase64;
84317
84327
  }
@@ -84319,7 +84329,11 @@ class eloam_plugin_service_ELoamPassService {
84319
84329
  /** 副摄像头拍照 */
84320
84330
  static async scanBySecondaryCamera() {
84321
84331
  const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64);
84322
- return res.photoBase64;
84332
+ if (this._isLinux) {
84333
+ return res.data.img; // 国产
84334
+ } else {
84335
+ return res.photoBase64;
84336
+ }
84323
84337
  }
84324
84338
  static async mergeImage(list, type) {
84325
84339
  const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraMerge_Base64, {