|
@@ -179,7 +179,7 @@ class ImageController extends Controller |
|
@@ -179,7 +179,7 @@ class ImageController extends Controller |
|
179
|
*/
|
179
|
*/
|
|
180
|
private function cacheImage($info, $w, $h) {
|
180
|
private function cacheImage($info, $w, $h) {
|
|
181
|
$path = $info['path'];
|
181
|
$path = $info['path'];
|
|
182
|
- $filename = $this->config['url'] . '/' . $info['path'] . '_' . $w . '_' . $h;
|
182
|
+ $filename = $this->config['root'] . '/' . $info['path'] . '_' . $w . '_' . $h;
|
|
183
|
Image::make($path)->resize($w, $h)->save($filename);
|
183
|
Image::make($path)->resize($w, $h)->save($filename);
|
|
184
|
return $filename;
|
184
|
return $filename;
|
|
185
|
}
|
185
|
}
|
|
@@ -193,7 +193,6 @@ class ImageController extends Controller |
|
@@ -193,7 +193,6 @@ class ImageController extends Controller |
|
193
|
* @time :2023/6/17 16:31
|
193
|
* @time :2023/6/17 16:31
|
|
194
|
*/
|
194
|
*/
|
|
195
|
private function multi($files) {
|
195
|
private function multi($files) {
|
|
196
|
-
|
|
|
|
197
|
if (!is_array($files)) {
|
196
|
if (!is_array($files)) {
|
|
198
|
$files = [$files];
|
197
|
$files = [$files];
|
|
199
|
}
|
198
|
}
|