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