|
...
|
...
|
@@ -174,14 +174,14 @@ class ImageController |
|
|
|
$data[] = $hash.$filename;
|
|
|
|
}
|
|
|
|
$imageModel = new ImageModel();
|
|
|
|
$imageModel->insertAll($save_data);
|
|
|
|
$imageModel->insert($save_data);
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
|
|
|
|
//下载
|
|
|
|
public function download($filename){
|
|
|
|
$path = Storage::path('./../uploads/images/'.$filename);
|
|
|
|
return response()->download($path,$filename);
|
|
|
|
$path = Storage::path($filename);
|
|
|
|
return response()->download($path,time().rand(1,100000));
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @name 统一返回参数
|
...
|
...
|
|