From c8f473ae8555045150c43b77c2e0e1d7f01e9634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=87=A1=E6=87=82?= Date: Tue, 12 Jul 2022 18:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=94=A8=E6=88=B7=20?= =?UTF-8?q?=E8=BD=A6=E6=9E=B6=E5=8F=B7=E4=B8=8D=E6=A3=80=E6=B5=8B=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=20=E4=BF=9D=E9=99=A9=E7=B1=BB=E5=9E=8B=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/user4s/User.php | 14 +++++++------- application/admin/view/user4s/user/edit.html | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/application/admin/controller/user4s/User.php b/application/admin/controller/user4s/User.php index 4af1f93..ad6cef6 100644 --- a/application/admin/controller/user4s/User.php +++ b/application/admin/controller/user4s/User.php @@ -242,13 +242,13 @@ class User extends Backend $params['genderdata'] = $cardinfo['sex']; } } - if(!empty($params['cardid'])){ - $has_frameno = $this->model->get(['frameno', $params['frameno']]); - if (!empty($has_frameno->id)) { - $this->model->rollback(); - $this->error('车架号重复'); - } - } + // if(!empty($params['cardid'])){ + // $has_frameno = $this->model->get(['frameno', $params['frameno']]); + // if (!empty($has_frameno->id)) { + // $this->model->rollback(); + // $this->error('车架号重复'); + // } + // } // $result = $this->model->allowField(true)->save($params); $result = $row->allowField(true)->save($params); diff --git a/application/admin/view/user4s/user/edit.html b/application/admin/view/user4s/user/edit.html index 2d7a886..24d9a7b 100644 --- a/application/admin/view/user4s/user/edit.html +++ b/application/admin/view/user4s/user/edit.html @@ -63,19 +63,19 @@
- +
- +
- +