## 函数 saveEditContent 修改后
~~~
/**
     * 保存修改时的数据
     * @return boolean
     */
    protected function saveEditContent($data = []) {
        // 表单数据
        $data || $data = $this->request->post();
        // 验证
        if (!empty($this -> validate)) {
            // 验证
            $result = $this -> validate($data, $this -> validate);
            if (true !== $result) $this -> error($result);
        }
        
        if ($this -> model -> update($data)) {
            $this->end_act('edit',$data);
            return true;
        } else {
            return false;
        }
    }
~~~
                    
        
    