正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -39,6 +39,8 @@ class ProductLogic extends BaseLogic | @@ -39,6 +39,8 @@ class ProductLogic extends BaseLogic | ||
| 39 | public function getInfo($id) | 39 | public function getInfo($id) |
| 40 | { | 40 | { |
| 41 | $info = parent::getInfo($id); | 41 | $info = parent::getInfo($id); |
| 42 | + var_dump($info); | ||
| 43 | + die(); | ||
| 42 | $info = $this->formatData($info); | 44 | $info = $this->formatData($info); |
| 43 | return $this->success($info); | 45 | return $this->success($info); |
| 44 | } | 46 | } |
| @@ -56,8 +58,6 @@ class ProductLogic extends BaseLogic | @@ -56,8 +58,6 @@ class ProductLogic extends BaseLogic | ||
| 56 | $info['created_uid_text'] = (new UserLogic())->getCacheInfo($info['created_uid'])['name'] ?? ''; | 58 | $info['created_uid_text'] = (new UserLogic())->getCacheInfo($info['created_uid'])['name'] ?? ''; |
| 57 | $info['url'] = $this->getProjectDomain() . $info['route'] ; | 59 | $info['url'] = $this->getProjectDomain() . $info['route'] ; |
| 58 | //统一图片链接 | 60 | //统一图片链接 |
| 59 | - var_dump($info['gallery']); | ||
| 60 | - die(); | ||
| 61 | if(!empty($info['gallery'])){ | 61 | if(!empty($info['gallery'])){ |
| 62 | foreach ($info['gallery'] as $k => $v){ | 62 | foreach ($info['gallery'] as $k => $v){ |
| 63 | $info['gallery'][$k]['image_link'] = $v['url']; | 63 | $info['gallery'][$k]['image_link'] = $v['url']; |
-
请 注册 或 登录 后发表评论