|
...
|
...
|
@@ -5,7 +5,6 @@ namespace App\Http\Controllers\File; |
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use App\Http\Controllers\type;
|
|
|
|
use App\Models\File\File;
|
|
|
|
use App\Models\File\Image as ImageModel;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Services\CosService;
|
|
...
|
...
|
@@ -13,7 +12,6 @@ use App\Services\TencentCosService; |
|
|
|
use Illuminate\Http\Exceptions\HttpResponseException;
|
|
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
use Intervention\Image\Facades\Image;
|
|
|
|
|
|
|
|
class ImageController extends Controller
|
|
...
|
...
|
@@ -259,7 +257,7 @@ class ImageController extends Controller |
|
|
|
* @time :2023/7/19 17:59
|
|
|
|
*/
|
|
|
|
public function download(){
|
|
|
|
$imageModel = new Image();
|
|
|
|
$imageModel = new ImageModel();
|
|
|
|
$info = $imageModel->read(['hash' => $this->param['hash']]);
|
|
|
|
if ($info === false) {
|
|
|
|
$this->response('指定文件不存在!', Code::USER_ERROR);
|
...
|
...
|
|