From a1c809d7eb55e28b0b636f09ae019380fcb3eb2d Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Thu, 28 Jan 2021 16:17:17 +0800 Subject: [PATCH] =?UTF-8?q?1.28=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/UserController.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Application/Admin/Controller/UserController.class.php b/Application/Admin/Controller/UserController.class.php index a399ad504..1e9e0d035 100644 --- a/Application/Admin/Controller/UserController.class.php +++ b/Application/Admin/Controller/UserController.class.php @@ -478,6 +478,13 @@ class UserController extends AdminController "url"=>U("User/index",array("nickname"=>$_POST['username'])) )); + if ((strtotime($_POST['leave_time'])+86399)where($map)->save(['work_status'=>1]); + } else { + $Member->where($map)->save(['work_status'=>0]); + } + + $this->success('修改成功!', U('User/index')); } else { $this->error('修改失败!', U('User/index'));