作者 lyh

gx

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