From 160367c16016f91e4454374d56110ca2c4f69e49 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Thu, 11 Apr 2024 18:05:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D"=E6=89=93=E5=8C=85=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E4=BC=9A=E5=B0=86=E6=95=B4=E4=B8=AA=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E8=B7=AF=E5=BE=84=E7=BB=93=E6=9E=84=E5=A1=9E=E8=BF=9B?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E5=8C=85=E5=86=85"=E9=97=AE=E9=A2=98=20*?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E6=B2=A1=E6=80=8E=E4=B9=88=E6=B3=A8=E6=84=8F?= =?UTF-8?q?=E8=BF=99=E4=B8=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/HomeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/HomeController.php b/controllers/HomeController.php index b80bf34..7dab0c9 100644 --- a/controllers/HomeController.php +++ b/controllers/HomeController.php @@ -594,7 +594,7 @@ class HomeController extends Controller if (!file_exists($absolutePath)) { throw new NotFoundHttpException('The requested file does not exist.'); } - $absolutePaths[] = $absolutePath; + $absolutePaths[basename($absolutePath)] = $absolutePath; } $zipPath = Yii::getAlias(Yii::$app->params['dataDirectory']) . '/' . Yii::$app->user->id . '/' . $targetDirectory . '/' . $model->zipFilename . '.' . $model->zipFormat; try {