weapps-plugin-jingtong-verify 1.6.2-beta → 1.6.2-beta.2

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
@@ -1,2 +1,2 @@
1
1
  # SDK #
2
- 1.6.2-beta.1
2
+ 1.6.2-beta.2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "weapps-plugin-jingtong-verify",
3
3
  "pluginName": "weapps-plugin-jingtong-verify",
4
4
  "pluginType": "mp",
5
- "version": "1.6.2-beta",
5
+ "version": "1.6.2-beta.2",
6
6
  "description": "",
7
7
  "main": "sdk.js",
8
8
  "author": "tongyirenzheng",
package/sdk.js CHANGED
@@ -96,11 +96,13 @@ const completeDate = (time1, m) => {
96
96
 
97
97
  // 串通业务总接口
98
98
  exports.getPersonToken = (options) => {
99
+ console.log('串通业务总接口(skd: 1.6.2-beta.2)')
99
100
  // 对参数做兼容性处理
100
101
  let optionsParse = parseOptions(options)
101
102
 
102
103
  jingtongVerifyRequest.getSession({
103
104
  success: res => {
105
+ console.log('串通业务总接口getSession: ', res);
104
106
  if (!res.face_time && !res.realname_time) {
105
107
  // 未身份验证/身份验证已过期
106
108
  toVerify().then(res => {
@@ -167,11 +169,13 @@ const toPassportVerify = () => {
167
169
 
168
170
  // 串通业务总接口 -- 外国护照入口
169
171
  exports.getPersonTokenPassport = (options) => {
172
+ console.log('外国护照串通业务总接口(skd: 1.6.2-beta.2)')
170
173
  // 对参数做兼容性处理
171
174
  let optionsParse = parseOptions(options)
172
175
 
173
176
  jingtongVerifyRequest.getSession({
174
177
  success: res => {
178
+ console.log('外国护照串通业务总接口getSession:', res)
175
179
  if (!res.face_time && !res.realname_time) {
176
180
  // 未身份验证/身份验证已过期
177
181
  toPassportVerify().then(res => {
@@ -1223,8 +1223,8 @@ Page({
1223
1223
  // this.setData({
1224
1224
  // needUnite: ''
1225
1225
  // })
1226
-
1227
- console.log('进入业务总入口, 判断是否有手机号码', has_phone)
1226
+ console.log('通业务总接口face-verify(skd: 1.6.2-beta.2)')
1227
+ console.log('判断是否有手机号码', has_phone)
1228
1228
 
1229
1229
  // 登录成功回调 => 业务侧操作事项
1230
1230
  wx.$_ServiceConfiguration && wx.$_ServiceConfiguration.methods && wx.$_ServiceConfiguration.methods._loginSuccessCallBack && wx.$_ServiceConfiguration.methods._loginSuccessCallBack(session)
@@ -701,7 +701,8 @@ Page({
701
701
 
702
702
  setTimeout(() => {
703
703
  if (this.data.needUnite === "true") {
704
- console.log('进入业务总入口, 判断是否有手机号码', has_phone)
704
+ console.log('通业务总接口passport-verify(skd: 1.6.2-beta.2)')
705
+ console.log('判断是否有手机号码', has_phone)
705
706
  // this.setData({
706
707
  // needUnite: ''
707
708
  // })
@@ -540,7 +540,7 @@ function _getSession(options) {
540
540
  wx.setStorageSync('tif.has_phone', data.has_phone)
541
541
  wx.setStorageSync('tif.tel_confirm_time', data.tel_confirm_time)
542
542
  setTimeout(() => {
543
- console.log('====session信息====', data)
543
+ console.log('====session信息====3', data)
544
544
  options && options.success && options.success(data)
545
545
  }, 200)
546
546
  } else {