Skip to content

Commit

Permalink
Merge pull request #7 from ruchengtang/patch-1
Browse files Browse the repository at this point in the history
Update DDocController.php
  • Loading branch information
jormin authored Dec 31, 2017
2 parents c98620e + 59ad777 commit f53a921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/DDocController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Jormin\DDoc\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Routing\Controller;
use Barryvdh\Snappy\Facades\SnappyPdf;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\DB;
Expand Down Expand Up @@ -53,7 +53,7 @@ public function export($type)
$filename = config('app.name').'数据字典';
switch($type){
case 'html':
$zippath = __DIR__.'/'.$filename.'.zip';
$zippath = storage_path($filename.'.zip');
$zip = new \ZipArchive;
$res = $zip->open($zippath, \ZipArchive::CREATE);
if ($res === TRUE) {
Expand Down

0 comments on commit f53a921

Please sign in to comment.