qsh-webview-sdk 2.2.0 → 2.2.1

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/README.md CHANGED
@@ -672,12 +672,10 @@ qsh.chooseLocation({
672
672
  ### 人脸核身
673
673
 
674
674
  ```javascript
675
- // 人脸核身(小程序/APP)
675
+ // 人脸核身:跳转宿主小程序 /pages/face/index,并将参数拼到 query 上
676
676
  qsh.faceVerify({
677
677
  name: '姓名',
678
- idCardNumber: '身份证号',
679
- title: '人脸核身',
680
- url: 'https://example.com/face-result'
678
+ idCardNumber: '身份证号'
681
679
  });
682
680
  ```
683
681
 
package/dist/index.d.ts CHANGED
@@ -298,10 +298,6 @@ declare namespace UniWebView {
298
298
  name: string;
299
299
  /** 身份证号(必填) */
300
300
  idCardNumber: string;
301
- /** 标题(必填) */
302
- title: string;
303
- /** 之后打开的url(必填) */
304
- url: string;
305
301
  }
306
302
 
307
303
  /**
@@ -318,6 +314,8 @@ declare namespace UniWebView {
318
314
  features: {
319
315
  /** 支持 Promise */
320
316
  asyncSupport: boolean;
317
+ /** 通过宿主页跳转实现 */
318
+ hostPageNavigation?: boolean;
321
319
  };
322
320
  }
323
321
 
@@ -407,8 +405,8 @@ declare namespace UniWebView {
407
405
  getPrintCapabilities(): PrintPdfCapabilities;
408
406
 
409
407
  /**
410
- * 人脸识别(仅支持微信小程序环境)
411
- * 只发送请求,不返回任何结果给调用者
408
+ * 人脸识别(仅支持微信小程序环境)
409
+ * 通过 wx.miniProgram.navigateTo 跳转宿主 /pages/face/index,不返回任何结果给调用者
412
410
  */
413
411
  faceVerify(options: FaceVerifyOptions): void;
414
412
  /** 获取人脸识别功能能力信息 */