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'));