application/manage/controller/Member.php
public function delMember(Request $request)
    {
        $user_id = $request->param('user_id');
        if (empty($user_id)) {
            return $this->error('用户ID为空');
        }
        $user_logic = MemberLogic::instance();
        
        // 超级用户
        if ($user_logic->isAdmin($user_id)) {
            return $this->error('超级用户不能删除');
        }
        
        // 删除用户
        $user_logic->model->del($user_id);
        
        return $this->success('删除用户成功', Url::build('member/index'));
    }
public function delMember(Request $request)
    {
        $user_id = $request->param('user_id');
        if (empty($user_id)) {
            return $this->error('用户ID为空');
        }
        $user_logic = MemberLogic::instance();
        
        // 超级用户
        if ($user_logic->isAdmin($user_id)) {
            return $this->error('超级用户不能删除');
        }
        
        // 删除用户
        $user_logic->model->del($user_id);
        
        return $this->success('删除用户成功', Url::build('member/index'));
    }
删除用户

@param Request $request
@return mixed