Quellcode durchsuchen

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

吴昊天 vor 3 Jahren
Ursprung
Commit
be9cc3825f
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. 0 2
      crmeb/app/services/product/product/StoreProductServices.php

+ 0 - 2
crmeb/app/services/product/product/StoreProductServices.php

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