正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -56,13 +56,13 @@ class ProductLogic extends BaseLogic | @@ -56,13 +56,13 @@ class ProductLogic extends BaseLogic | ||
| 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 | //统一图片链接 | 58 | //统一图片链接 |
| 59 | -// if(!empty($info['gallery'])){ | ||
| 60 | -// foreach ($info['gallery'] as $k => $v){ | ||
| 61 | -// $v['image_link'] = $this->getImageUrl($v['url']); | ||
| 62 | -// $info['gallery'][$k] = $v; | ||
| 63 | -// } | ||
| 64 | -// } | ||
| 65 | -// $info['icon_link'] = $this->getImageUrl($info['icon']); | 59 | + if(!empty($info['gallery'])){ |
| 60 | + foreach ($info['gallery'] as $k => $v){ | ||
| 61 | + $v['image_link'] = $this->getImageUrl($v['url']); | ||
| 62 | + $info['gallery'][$k] = $v; | ||
| 63 | + } | ||
| 64 | + } | ||
| 65 | + $info['icon_link'] = $this->getImageUrl($info['icon']); | ||
| 66 | return $info; | 66 | return $info; |
| 67 | } | 67 | } |
| 68 | 68 |
-
请 注册 或 登录 后发表评论