weapps-plugin-jingtong-verify 1.5.6 → 1.5.8
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.5.
|
|
2
|
+
1.5.8
|
package/package.json
CHANGED
|
@@ -843,7 +843,7 @@ Page({
|
|
|
843
843
|
});
|
|
844
844
|
} else {
|
|
845
845
|
wx.showToast({
|
|
846
|
-
title: errmsg || '
|
|
846
|
+
title: errmsg || '验证码获取已超10次,请明天再试。',
|
|
847
847
|
icon: 'none',
|
|
848
848
|
duration: 2500
|
|
849
849
|
});
|
|
@@ -994,15 +994,15 @@ Page({
|
|
|
994
994
|
})
|
|
995
995
|
return
|
|
996
996
|
}
|
|
997
|
-
const ms5Code = MD5(this.data.formSafeData.verification_code).toString()
|
|
998
|
-
if ( formSafeDataCode !== ms5Code) {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
}
|
|
997
|
+
// const ms5Code = MD5(this.data.formSafeData.verification_code).toString()
|
|
998
|
+
// if ( formSafeDataCode !== ms5Code) {
|
|
999
|
+
// wx.showToast({
|
|
1000
|
+
// title: '验证码不一致,请重新输入',
|
|
1001
|
+
// icon: 'none',
|
|
1002
|
+
// duration: 2000
|
|
1003
|
+
// })
|
|
1004
|
+
// return
|
|
1005
|
+
// }
|
|
1006
1006
|
|
|
1007
1007
|
// 接口校验验证码
|
|
1008
1008
|
const smsCodeParam = {
|
|
@@ -1014,7 +1014,7 @@ Page({
|
|
|
1014
1014
|
if (errcode === 0) {
|
|
1015
1015
|
if(!res.data.success){
|
|
1016
1016
|
wx.showToast({
|
|
1017
|
-
title: '
|
|
1017
|
+
title: errmsg || '验证码校验失败,请重新输入。',
|
|
1018
1018
|
icon: 'none',
|
|
1019
1019
|
duration: 2000
|
|
1020
1020
|
})
|
|
@@ -1024,7 +1024,7 @@ Page({
|
|
|
1024
1024
|
}
|
|
1025
1025
|
} else {
|
|
1026
1026
|
wx.showToast({
|
|
1027
|
-
title: errmsg,
|
|
1027
|
+
title: errmsg || '验证码校验失败,请重新输入。',
|
|
1028
1028
|
icon: 'none',
|
|
1029
1029
|
duration: 2000
|
|
1030
1030
|
})
|
|
@@ -226,7 +226,6 @@ Page({
|
|
|
226
226
|
return
|
|
227
227
|
}
|
|
228
228
|
this.setData({
|
|
229
|
-
formData: { ...this.data.formData, verification_code: tempCode },
|
|
230
229
|
submitMode: '',
|
|
231
230
|
isSubmitting: false
|
|
232
231
|
})
|
|
@@ -286,16 +285,16 @@ Page({
|
|
|
286
285
|
mask: true // 防止用户点击
|
|
287
286
|
})
|
|
288
287
|
const { formDataVerificationCode } = this.data
|
|
289
|
-
const ms5Code = MD5(formData.verification_code).toString()
|
|
290
|
-
if ( formDataVerificationCode !== ms5Code) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
288
|
+
// const ms5Code = MD5(formData.verification_code).toString()
|
|
289
|
+
// if ( formDataVerificationCode !== ms5Code) {
|
|
290
|
+
// wx.hideLoading()
|
|
291
|
+
// wx.showToast({
|
|
292
|
+
// title: '验证码不一致,请重新输入',
|
|
293
|
+
// icon: 'none',
|
|
294
|
+
// duration: 2000
|
|
295
|
+
// })
|
|
296
|
+
// return
|
|
297
|
+
// }
|
|
299
298
|
// 接口验证短信验证码
|
|
300
299
|
if(source_type !== '2'){
|
|
301
300
|
const verSmsCodeParam = {
|
|
@@ -306,7 +305,7 @@ Page({
|
|
|
306
305
|
const { errcode, errmsg } = res
|
|
307
306
|
if(errcode !== 0){
|
|
308
307
|
wx.showToast({
|
|
309
|
-
title:
|
|
308
|
+
title: errmsg,
|
|
310
309
|
icon: 'none',
|
|
311
310
|
duration: 2000
|
|
312
311
|
})
|
|
@@ -314,7 +313,7 @@ Page({
|
|
|
314
313
|
} else{
|
|
315
314
|
if(!res.data.success) {
|
|
316
315
|
wx.showToast({
|
|
317
|
-
title: '
|
|
316
|
+
title: errmsg || '验证码校验失败,请重新输入。',
|
|
318
317
|
icon: 'none',
|
|
319
318
|
duration: 2000
|
|
320
319
|
})
|
|
@@ -707,7 +706,7 @@ Page({
|
|
|
707
706
|
});
|
|
708
707
|
} else {
|
|
709
708
|
wx.showToast({
|
|
710
|
-
title: errmsg || '
|
|
709
|
+
title: errmsg || '验证码获取已超10次,请明天再试。',
|
|
711
710
|
icon: 'none',
|
|
712
711
|
duration: 2500
|
|
713
712
|
});
|