weapps-plugin-jingtong-verify 1.7.4 → 1.8.0

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.7.4
2
+ 1.8.0
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.7.4",
5
+ "version": "1.8.0",
6
6
  "description": "",
7
7
  "main": "sdk.js",
8
8
  "author": "tongyirenzheng",
@@ -651,6 +651,10 @@ function checkIDCard(sId) {
651
651
  if (sId == null || sId == "") {
652
652
  return false;
653
653
  }
654
+ // 9开头身份证,返回错误
655
+ if (sId.startsWith('9')) {
656
+ return false;
657
+ }
654
658
  var aCity = {
655
659
  11: "北京",
656
660
  12: "天津",