【程序目录】处理商品添加错误的问题

This commit is contained in:
吴昊天 2022-04-18 01:06:37 +00:00 committed by Gitee
parent 35c9c34bac
commit be9cc3825f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -498,8 +498,6 @@ class StoreProductServices extends BaseServices
{
if (count($data['cate_id']) < 1) throw new CommonException(AdminApiErrorCode::ERR_PLEASE_SELECT_PRODUCT_CATEGORY);
if (!$data['store_name']) throw new CommonException(AdminApiErrorCode::ERR_PLEASE_ENTER_THE_PRODUCT_NAME);
$data['slider_image'] = [];
if (count($data['slider_image']) < 1) throw new CommonException(AdminApiErrorCode::ERR_PLEASE_UPLOAD_SLIDER_IMAGE);
$detail = $data['attrs'];