|
...
|
...
|
@@ -136,6 +136,14 @@ class ProductLogic extends BaseLogic |
|
|
|
public function editList(){
|
|
|
|
$this->param['category_id'] = $this->getLastCategory($this->param['category_id']);
|
|
|
|
$this->param['keyword_id'] = $this->saveKeyword($this->param['keyword_id']);
|
|
|
|
if(isset($this->param['gallery']) && !empty($this->param['gallery'])){
|
|
|
|
foreach ($this->param['gallery'] as $k => $v){
|
|
|
|
$v['url'] = str_replace_url($v['url']);
|
|
|
|
$this->param['gallery'][$k] = $v;
|
|
|
|
}
|
|
|
|
$this->param['thumb'] = Arr::a2s($this->param['gallery'][0] ?? []);
|
|
|
|
$this->param['gallery'] = Arr::a2s($this->param['gallery'] ?? []);
|
|
|
|
}
|
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
...
|
...
|
|