|
...
|
...
|
@@ -208,6 +208,7 @@ class ProductLogic extends BaseLogic |
|
|
|
public function editList(){
|
|
|
|
$category_ids = $this->param['category_id'];
|
|
|
|
$this->param['category_id'] = $this->handleListCategory($this->param['category_id']);
|
|
|
|
$keyword_arr = $this->param['keyword_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){
|
|
...
|
...
|
@@ -226,6 +227,7 @@ class ProductLogic extends BaseLogic |
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
//产品分类关联
|
|
|
|
CategoryRelated::saveRelated($this->param['id'], $category_ids);
|
|
|
|
KeywordRelated::saveRelated($this->param['id'],$keyword_arr);
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('系统错误,请连续管理员');
|
|
|
|
}
|
...
|
...
|
|