修改上传文件路径
This commit is contained in:
parent
7556ddfd3c
commit
544b376d3f
@ -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/'
|
||||
];
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user