修改上传文件路径

This commit is contained in:
wangxiaowei 2024-08-23 10:40:36 +08:00
parent 7556ddfd3c
commit 544b376d3f
2 changed files with 2 additions and 2 deletions

@ -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('缺少参数');
}

@ -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/'
];
}