weapps-plugin-jingtong-verify 1.5.7 → 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
|
})
|
|
@@ -285,16 +285,16 @@ Page({
|
|
|
285
285
|
mask: true // 防止用户点击
|
|
286
286
|
})
|
|
287
287
|
const { formDataVerificationCode } = this.data
|
|
288
|
-
const ms5Code = MD5(formData.verification_code).toString()
|
|
289
|
-
if ( formDataVerificationCode !== ms5Code) {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
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
|
+
// }
|
|
298
298
|
// 接口验证短信验证码
|
|
299
299
|
if(source_type !== '2'){
|
|
300
300
|
const verSmsCodeParam = {
|
|
@@ -305,7 +305,7 @@ Page({
|
|
|
305
305
|
const { errcode, errmsg } = res
|
|
306
306
|
if(errcode !== 0){
|
|
307
307
|
wx.showToast({
|
|
308
|
-
title:
|
|
308
|
+
title: errmsg,
|
|
309
309
|
icon: 'none',
|
|
310
310
|
duration: 2000
|
|
311
311
|
})
|
|
@@ -313,7 +313,7 @@ Page({
|
|
|
313
313
|
} else{
|
|
314
314
|
if(!res.data.success) {
|
|
315
315
|
wx.showToast({
|
|
316
|
-
title: '
|
|
316
|
+
title: errmsg || '验证码校验失败,请重新输入。',
|
|
317
317
|
icon: 'none',
|
|
318
318
|
duration: 2000
|
|
319
319
|
})
|
|
@@ -706,7 +706,7 @@ Page({
|
|
|
706
706
|
});
|
|
707
707
|
} else {
|
|
708
708
|
wx.showToast({
|
|
709
|
-
title: errmsg || '
|
|
709
|
+
title: errmsg || '验证码获取已超10次,请明天再试。',
|
|
710
710
|
icon: 'none',
|
|
711
711
|
duration: 2500
|
|
712
712
|
});
|