本地生活商品图片上传到阿里云OSS
This commit is contained in:
parent
f451640b99
commit
d1f77cc300
@ -67,7 +67,7 @@ class File extends Api
|
|||||||
$path = self::$APP_UPLOAD_PATH[$post['type']];
|
$path = self::$APP_UPLOAD_PATH[$post['type']];
|
||||||
// 本地生活商家上传商品
|
// 本地生活商家上传商品
|
||||||
if ($post['type'] === 'local_shop_add' && $post['lstore_id'] > 0) {
|
if ($post['type'] === 'local_shop_add' && $post['lstore_id'] > 0) {
|
||||||
$path .= '/' . $post['lstore_id'];
|
$path .= '/' . $this->user_id . '_' .$post['lstore_id'];
|
||||||
} else {
|
} else {
|
||||||
return JsonServer::error('缺少参数');
|
return JsonServer::error('缺少参数');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user