rabin 3 years ago
parent
commit
b4c8b3d832
1 changed files with 2 additions and 2 deletions
  1. 2 2
      service/option/src/Auth.php

+ 2 - 2
service/option/src/Auth.php

@@ -60,8 +60,8 @@ class Auth
                 $data['msg'] = $msg;
             } else {
                 if ($account['status'] == 1) {
-                    $idcard = Dever::input('idcard');
-                    if ($user['idcard'] != $idcard) {
+                    $idcard = trim(Dever::input('idcard'));
+                    if (trim($user['idcard']) != $idcard) {
                         Dever::alert('身份证号不正确');
                     }
                     # 验证身份证是否验证过