作者 lyh

gx

@@ -144,7 +144,7 @@ class ProductLogic extends BaseLogic @@ -144,7 +144,7 @@ class ProductLogic extends BaseLogic
144 $this->param['thumb'] = Arr::a2s($this->param['gallery'][0] ?? []); 144 $this->param['thumb'] = Arr::a2s($this->param['gallery'][0] ?? []);
145 $this->param['gallery'] = Arr::a2s($this->param['gallery'] ?? []); 145 $this->param['gallery'] = Arr::a2s($this->param['gallery'] ?? []);
146 }else{ 146 }else{
147 - $this->param['thumb'] = []; 147 + $this->param['thumb'] = Arr::a2s([]);
148 } 148 }
149 $this->model->edit($this->param,['id'=>$this->param['id']]); 149 $this->model->edit($this->param,['id'=>$this->param['id']]);
150 return $this->success(); 150 return $this->success();
@@ -202,7 +202,7 @@ class ProductLogic extends BaseLogic @@ -202,7 +202,7 @@ class ProductLogic extends BaseLogic
202 $param['thumb'] = Arr::a2s($param['gallery'][0] ?? []); 202 $param['thumb'] = Arr::a2s($param['gallery'][0] ?? []);
203 $param['gallery'] = Arr::a2s($param['gallery'] ?? []); 203 $param['gallery'] = Arr::a2s($param['gallery'] ?? []);
204 }else{ 204 }else{
205 - $param['thumb'] = []; 205 + $param['thumb'] = Arr::a2s([]);
206 } 206 }
207 $param['attrs'] = Arr::a2s($param['attrs'] ?? []); 207 $param['attrs'] = Arr::a2s($param['attrs'] ?? []);
208 $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? ''); 208 $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? '');