作者 lyh

gx

@@ -143,6 +143,8 @@ class ProductLogic extends BaseLogic @@ -143,6 +143,8 @@ class ProductLogic extends BaseLogic
143 } 143 }
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{
  147 + $this->param['thumb'] = [];
146 } 148 }
147 $this->model->edit($this->param,['id'=>$this->param['id']]); 149 $this->model->edit($this->param,['id'=>$this->param['id']]);
148 return $this->success(); 150 return $this->success();
@@ -199,6 +201,8 @@ class ProductLogic extends BaseLogic @@ -199,6 +201,8 @@ class ProductLogic extends BaseLogic
199 } 201 }
200 $param['thumb'] = Arr::a2s($param['gallery'][0] ?? []); 202 $param['thumb'] = Arr::a2s($param['gallery'][0] ?? []);
201 $param['gallery'] = Arr::a2s($param['gallery'] ?? []); 203 $param['gallery'] = Arr::a2s($param['gallery'] ?? []);
  204 + }else{
  205 + $param['thumb'] = [];
202 } 206 }
203 $param['attrs'] = Arr::a2s($param['attrs'] ?? []); 207 $param['attrs'] = Arr::a2s($param['attrs'] ?? []);
204 $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? ''); 208 $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? '');
@@ -201,6 +201,7 @@ class UserLoginLogic @@ -201,6 +201,7 @@ class UserLoginLogic
201 $info['upload_config'] = $project['upload_config']; 201 $info['upload_config'] = $project['upload_config'];
202 $info['image_max'] = $project['image_max']; 202 $info['image_max'] = $project['image_max'];
203 $info['configuration'] = $project['deploy_build']['configuration']; 203 $info['configuration'] = $project['deploy_build']['configuration'];
  204 + $info['type'] = $project['type'];
204 if($info['is_customized'] == 1){ 205 if($info['is_customized'] == 1){
205 $info['is_visualization'] = json_decode($project['is_visualization']); 206 $info['is_visualization'] = json_decode($project['is_visualization']);
206 } 207 }