作者 lyh

gx

@@ -55,6 +55,12 @@ class ProductLogic extends BaseLogic @@ -55,6 +55,12 @@ class ProductLogic extends BaseLogic
55 $info['status_text'] = Product::statusMap()[$info['status']] ?? ''; 55 $info['status_text'] = Product::statusMap()[$info['status']] ?? '';
56 $info['created_uid_text'] = (new UserLogic())->getCacheInfo($info['created_uid'])['name'] ?? ''; 56 $info['created_uid_text'] = (new UserLogic())->getCacheInfo($info['created_uid'])['name'] ?? '';
57 $info['url'] = $this->getProjectDomain() . $info['route'] ; 57 $info['url'] = $this->getProjectDomain() . $info['route'] ;
  58 + //统一图片链接
  59 + if(!empty($info['gallery'])){
  60 + foreach ($info['gallery'] as $k => $v){
  61 + $info['gallery'][$k]['image_link'] = $v['url'];
  62 + }
  63 + }
58 return $info; 64 return $info;
59 } 65 }
60 66