|
@@ -55,15 +55,7 @@ class ProductLogic extends BaseLogic |
|
@@ -55,15 +55,7 @@ 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
|
- $info['gallery'] = json_decode($info['gallery']);
|
|
|
|
61
|
- foreach ($info['gallery'] as $k => $v){
|
|
|
|
62
|
- $v = (array)$v;
|
|
|
|
63
|
- $v['image_link'] = $this->getImageUrl($v['url']);
|
|
|
|
64
|
- $info['gallery'][$k] = $v;
|
|
|
|
65
|
- }
|
|
|
|
66
|
- }
|
58
|
+
|
|
67
|
return $info;
|
59
|
return $info;
|
|
68
|
}
|
60
|
}
|
|
69
|
|
61
|
|