作者 lyh

gx

... ... @@ -144,7 +144,7 @@ class ProductLogic extends BaseLogic
$this->param['thumb'] = Arr::a2s($this->param['gallery'][0] ?? []);
$this->param['gallery'] = Arr::a2s($this->param['gallery'] ?? []);
}else{
$this->param['thumb'] = [];
$this->param['thumb'] = Arr::a2s([]);
}
$this->model->edit($this->param,['id'=>$this->param['id']]);
return $this->success();
... ... @@ -202,7 +202,7 @@ class ProductLogic extends BaseLogic
$param['thumb'] = Arr::a2s($param['gallery'][0] ?? []);
$param['gallery'] = Arr::a2s($param['gallery'] ?? []);
}else{
$param['thumb'] = [];
$param['thumb'] = Arr::a2s([]);
}
$param['attrs'] = Arr::a2s($param['attrs'] ?? []);
$param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? '');
... ...