作者 lyh

gx

@@ -202,16 +202,16 @@ class ProductLogic extends BaseLogic @@ -202,16 +202,16 @@ class ProductLogic extends BaseLogic
202 $category_ids = $this->param['category_id']; 202 $category_ids = $this->param['category_id'];
203 $this->param['category_id'] = $this->handleListCategory($this->param['category_id']); 203 $this->param['category_id'] = $this->handleListCategory($this->param['category_id']);
204 // $this->param['keyword_id'] = $this->saveKeyword($this->param['keyword_id']); 204 // $this->param['keyword_id'] = $this->saveKeyword($this->param['keyword_id']);
205 - if(isset($this->param['gallery']) && !empty($this->param['gallery'])){  
206 - foreach ($this->param['gallery'] as $k => $v){  
207 - $v['url'] = str_replace_url($v['url']);  
208 - $this->param['gallery'][$k] = $v;  
209 - }  
210 - $this->param['thumb'] = Arr::a2s($this->param['gallery'][0] ?? []);  
211 - $this->param['gallery'] = Arr::a2s($this->param['gallery'] ?? []);  
212 - }else{  
213 - unset($this->param['thumb']);  
214 - } 205 +// if(isset($this->param['gallery']) && !empty($this->param['gallery'])){
  206 +// foreach ($this->param['gallery'] as $k => $v){
  207 +// $v['url'] = str_replace_url($v['url']);
  208 +// $this->param['gallery'][$k] = $v;
  209 +// }
  210 +// $this->param['thumb'] = Arr::a2s($this->param['gallery'][0] ?? []);
  211 +// $this->param['gallery'] = Arr::a2s($this->param['gallery'] ?? []);
  212 +// }else{
  213 +// unset($this->param['thumb']);
  214 +// }
215 try { 215 try {
216 if(isset($this->param['route']) && !empty($this->param['route'])){ 216 if(isset($this->param['route']) && !empty($this->param['route'])){
217 $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']); 217 $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']);