|
...
|
...
|
@@ -135,15 +135,15 @@ class ProductLogic extends BaseLogic |
|
|
|
$v['url'] = str_replace_url($v['url']);
|
|
|
|
$param['gallery'][$k] = $v;
|
|
|
|
}
|
|
|
|
$param['thumb'] = Arr::a2s($param['gallery'][0] ?? '');
|
|
|
|
$param['gallery'] = Arr::a2s($param['gallery'] ?? '');
|
|
|
|
$param['thumb'] = Arr::a2s($param['gallery'][0] ?? []);
|
|
|
|
$param['gallery'] = Arr::a2s($param['gallery'] ?? []);
|
|
|
|
}
|
|
|
|
$param['attrs'] = Arr::a2s($param['attrs'] ?? '');
|
|
|
|
$param['attrs'] = Arr::a2s($param['attrs'] ?? []);
|
|
|
|
$param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? '');
|
|
|
|
if(isset($param['keyword_id']) && !empty($param['keyword_id'])){
|
|
|
|
$param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).',';
|
|
|
|
}
|
|
|
|
$param['describe'] = Arr::a2s($param['describe'] ?? '');
|
|
|
|
$param['describe'] = Arr::a2s($param['describe'] ?? []);
|
|
|
|
$param['describe_id'] = Arr::arrToSet($param['describe_id'] ?? '');
|
|
|
|
$param['seo_mate'] = Arr::a2s($param['seo_mate'] ?? '');
|
|
|
|
$param['related_product_id'] = Arr::arrToSet($param['related_product_id'] ?? '');
|
|
...
|
...
|
@@ -151,7 +151,7 @@ class ProductLogic extends BaseLogic |
|
|
|
foreach ($param['icon'] as $k1 => $v1){
|
|
|
|
$param['icon'][$k1] = str_replace_url($v1);
|
|
|
|
}
|
|
|
|
$param['icon'] = Arr::a2s($param['icon'] ?? '');
|
|
|
|
$param['icon'] = Arr::a2s($param['icon'] ?? []);
|
|
|
|
}
|
|
|
|
$param['created_uid'] = $this->user['id'];
|
|
|
|
return $param;
|
...
|
...
|
|