正在显示
1 个修改的文件
包含
6 行增加
和
18 行删除
| @@ -78,30 +78,18 @@ class ProductLogic extends BaseLogic | @@ -78,30 +78,18 @@ class ProductLogic extends BaseLogic | ||
| 78 | $param['thumb'] = Arr::a2s($param['gallery'][0] ?? ''); | 78 | $param['thumb'] = Arr::a2s($param['gallery'][0] ?? ''); |
| 79 | $param['gallery'] = Arr::a2s($param['gallery'] ?? ''); | 79 | $param['gallery'] = Arr::a2s($param['gallery'] ?? ''); |
| 80 | } | 80 | } |
| 81 | - if(isset($param['attrs']) && !empty($param['attrs'])){ | ||
| 82 | - $param['attrs'] = Arr::a2s($param['attrs'] ?? ''); | ||
| 83 | - } | ||
| 84 | - if(isset($param['attr_id']) && !empty($param['attr_id'])){ | ||
| 85 | - $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? ''); | ||
| 86 | - } | 81 | + $param['attrs'] = Arr::a2s($param['attrs'] ?? ''); |
| 82 | + $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? ''); | ||
| 87 | if(isset($param['category_id']) && !empty($param['category_id'])){ | 83 | if(isset($param['category_id']) && !empty($param['category_id'])){ |
| 88 | $param['category_id'] = ','.Arr::arrToSet($param['category_id']).','; | 84 | $param['category_id'] = ','.Arr::arrToSet($param['category_id']).','; |
| 89 | } | 85 | } |
| 90 | if(isset($param['keyword_id']) && !empty($param['keyword_id'])){ | 86 | if(isset($param['keyword_id']) && !empty($param['keyword_id'])){ |
| 91 | $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).','; | 87 | $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).','; |
| 92 | } | 88 | } |
| 93 | - if(isset($param['describe']) && !empty($param['describe'])){ | ||
| 94 | - $param['describe'] = Arr::a2s($param['describe'] ?? ''); | ||
| 95 | - } | ||
| 96 | - if(isset($param['describe_id']) && !empty($param['describe_id'])){ | ||
| 97 | - $param['describe_id'] = Arr::arrToSet($param['describe_id'] ?? ''); | ||
| 98 | - } | ||
| 99 | - if(isset($param['seo_mate']) && !empty($param['seo_mate'])){ | ||
| 100 | - $param['seo_mate'] = Arr::a2s($param['seo_mate'] ?? ''); | ||
| 101 | - } | ||
| 102 | - if(isset($param['related_product_id']) && !empty($param['related_product_id'])){ | ||
| 103 | - $param['related_product_id'] = Arr::arrToSet($param['related_product_id'] ?? ''); | ||
| 104 | - } | 89 | + $param['describe'] = Arr::a2s($param['describe'] ?? ''); |
| 90 | + $param['describe_id'] = Arr::arrToSet($param['describe_id'] ?? ''); | ||
| 91 | + $param['seo_mate'] = Arr::a2s($param['seo_mate'] ?? ''); | ||
| 92 | + $param['related_product_id'] = Arr::arrToSet($param['related_product_id'] ?? ''); | ||
| 105 | if(isset($param['icon']) && !empty($param['icon'])){ | 93 | if(isset($param['icon']) && !empty($param['icon'])){ |
| 106 | foreach ($param['icon'] as $k1 => $v1){ | 94 | foreach ($param['icon'] as $k1 => $v1){ |
| 107 | $param['icon'][$k1] = str_replace_url($v1); | 95 | $param['icon'][$k1] = str_replace_url($v1); |
-
请 注册 或 登录 后发表评论