From 544b376d3f13406972478a71cca8a77946497c9c Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Fri, 23 Aug 2024 10:40:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/File.php | 2 +- app/common/enum/LocalStoreFileEnum.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/File.php b/app/api/controller/File.php index 79c67ab4..57f5cd1d 100755 --- a/app/api/controller/File.php +++ b/app/api/controller/File.php @@ -63,7 +63,7 @@ class File extends Api $path = LocalStoreFileEnum::$APP_UPLOAD_PATH[$post['type']]; // 本地生活商家上传商品 if ($post['type'] === 'local_shop_add' && $post['lstore_id'] > 0) { - $path .= '/' . $this->user_id . '_' . $post['lstore_id']; + $path .= $post['lstore_id']; } else { return JsonServer::error('缺少参数'); } diff --git a/app/common/enum/LocalStoreFileEnum.php b/app/common/enum/LocalStoreFileEnum.php index 68d003c0..01f7b829 100644 --- a/app/common/enum/LocalStoreFileEnum.php +++ b/app/common/enum/LocalStoreFileEnum.php @@ -5,6 +5,6 @@ namespace app\common\enum; class LocalStoreFileEnum { public static $APP_UPLOAD_PATH = [ - 'local_shop_add' => 'local_life_shop_goods' + 'local_shop_add' => 'local_life_shop_goods/' ]; } \ No newline at end of file