weapps-plugin-jingtong-verify 1.3.8 → 1.3.9
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/package.json
CHANGED
|
@@ -312,6 +312,26 @@ Page({
|
|
|
312
312
|
})
|
|
313
313
|
},
|
|
314
314
|
|
|
315
|
+
// 判断是否是PC端登录
|
|
316
|
+
getDevice() {
|
|
317
|
+
return new Promise((resolve, reject) => {
|
|
318
|
+
const systemInfo = wx.getDeviceInfo();
|
|
319
|
+
console.log('systemInfo', systemInfo)
|
|
320
|
+
if (['windows', 'mac'].includes(systemInfo.platform)) {
|
|
321
|
+
console.log('当前为电脑端微信');
|
|
322
|
+
wx.showToast({
|
|
323
|
+
title: '请您使用移动端京通小程序',
|
|
324
|
+
icon: 'none',
|
|
325
|
+
duration: 3000
|
|
326
|
+
})
|
|
327
|
+
return
|
|
328
|
+
} else {
|
|
329
|
+
console.log('当前为手机端');
|
|
330
|
+
resolve()
|
|
331
|
+
}
|
|
332
|
+
})
|
|
333
|
+
},
|
|
334
|
+
|
|
315
335
|
// 根据证件类型匹配校验正则和校验类型
|
|
316
336
|
toMatchRules() {
|
|
317
337
|
let { cid_type, nation, nation_name } = this.data.formData
|
|
@@ -598,6 +618,9 @@ Page({
|
|
|
598
618
|
if (currentAuthType === 'wxFace') {
|
|
599
619
|
console.log('微信人脸识别认证')
|
|
600
620
|
|
|
621
|
+
// 判断是否是PC端登录
|
|
622
|
+
await this.getDevice()
|
|
623
|
+
|
|
601
624
|
// 判断人脸失败次数
|
|
602
625
|
await this.fetchFaceFailCount(false)
|
|
603
626
|
|
|
@@ -611,6 +634,9 @@ Page({
|
|
|
611
634
|
// 错误触发销毁回调函数处理
|
|
612
635
|
this.handleExitedState()
|
|
613
636
|
|
|
637
|
+
// 判断是否是PC端登录
|
|
638
|
+
await this.getDevice()
|
|
639
|
+
|
|
614
640
|
// 出入境微信人脸识别接口
|
|
615
641
|
this.toFaceReceptionAuth()
|
|
616
642
|
} else if(currentAuthType === 'cardAuth') {
|