|
@@ -30,6 +30,11 @@ class GoodsService
|
|
|
return json_success('', $goods);
|
|
|
}
|
|
|
|
|
|
+ public static function selectAllByCategoryForRuleAddComponent($category = "GOODS")
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
public static function select(Request $request, $classify = "GOODS")
|
|
|
{
|
|
|
$page = $request->get('page');
|
|
@@ -848,7 +853,7 @@ class GoodsService
|
|
|
if (!$category) {
|
|
|
throw new BusinessException("产品分类不存在~");
|
|
|
}
|
|
|
- if (empty($params['goods_category'])){
|
|
|
+ if (empty($params['goods_category'])) {
|
|
|
$params['goods_category'] = $category->category_classify;
|
|
|
}
|
|
|
|
|
@@ -957,7 +962,7 @@ class GoodsService
|
|
|
foreach ($item1['items'] as $item2) {
|
|
|
$newParams = [];
|
|
|
foreach ($item2['params'] as $param) {
|
|
|
- if (!empty($param[0]) || !empty($param[1])){
|
|
|
+ if (!empty($param[0]) || !empty($param[1])) {
|
|
|
$newParams[] = $param;
|
|
|
}
|
|
|
}
|
|
@@ -1243,7 +1248,7 @@ class GoodsService
|
|
|
foreach ($item1['items'] as $item2) {
|
|
|
$newParams = [];
|
|
|
foreach ($item2['params'] as $param) {
|
|
|
- if (!empty($param[0]) || !empty($param[1])){
|
|
|
+ if (!empty($param[0]) || !empty($param[1])) {
|
|
|
$newParams[] = $param;
|
|
|
}
|
|
|
}
|