linwu 2 years ago
parent
commit
3a6dc248f9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/user/controller/AdminUserController.php

+ 2 - 2
app/user/controller/AdminUserController.php

@@ -191,10 +191,10 @@ class AdminUserController extends AdminBaseController
                 if (!empty($mobileCheck)) {
                     $this->error("第" . ($k + 2) . "行的手机号已存在");
                 }
-                if (in_array($v['id_type'], $idtype)) {
+                if (!in_array($v['id_type'], $idtype)) {
                     unset($v['id_type']);
                 }
-                if (in_array($v['marry'], $marry)) {
+                if (!in_array($v['marry'], $marry)) {
                     unset($v['marry']);
                 }
                 UserAuthModel::create($v);