From e914fde68de648510e59622d50db9d348540a803 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Thu, 9 Jan 2020 10:57:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E5=88=97=E8=A1=A8=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E9=94=81=E5=AE=9A=E6=B7=BB=E5=8A=A0=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/MemberController.class.php | 7 ++- Application/Admin/View/Member/edit.html | 53 ++++++++++++++---- Application/Admin/View/Member/user_info.html | 54 ++++++++++++++----- 3 files changed, 90 insertions(+), 24 deletions(-) diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php index 8eede5401..190b99bf6 100644 --- a/Application/Admin/Controller/MemberController.class.php +++ b/Application/Admin/Controller/MemberController.class.php @@ -1230,7 +1230,12 @@ class MemberController extends ThinkController if ($accounts) $map['account'] = ['in', array_unique(explode("\n", $accounts))]; if ($id) $map['id'] = ['in', array_unique(explode("\n", $id))]; $users = M('user', 'tab_')->where($map)->field('id')->select(); - $res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]); + if($_POST['lock_remark']){ + $res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status,"lock_remark" => $_POST['lock_remark']]); + }else{ + $res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]); + } + if ($res) { foreach ($users as $item) { \Think\Log::actionLog('Member/lock_status', 'Member', $item['id']); diff --git a/Application/Admin/View/Member/edit.html b/Application/Admin/View/Member/edit.html index 2bae45352..01d3c5afe 100644 --- a/Application/Admin/View/Member/edit.html +++ b/Application/Admin/View/Member/edit.html @@ -13,7 +13,7 @@
-
+