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 @@