application/manage/controller/File.php
public function delFile(Request $request)
    {
        $file_id = $request->param('file_id');
        if (empty($file_id)) {
            return $this->error('文件ID为空');
        }
        
        $res = FileLogic::instance()->delFile($file_id);
        if ($res['code'] == 1) {
            return $this->success('删除文件成功', 'history.go(0)');
        } else {
            return $this->error($res['msg']);
        }
    }
public function delFile(Request $request)
    {
        $file_id = $request->param('file_id');
        if (empty($file_id)) {
            return $this->error('文件ID为空');
        }
        
        $res = FileLogic::instance()->delFile($file_id);
        if ($res['code'] == 1) {
            return $this->success('删除文件成功', 'history.go(0)');
        } else {
            return $this->error($res['msg']);
        }
    }
删除文件

@param Request $request
@return mixed