Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -40,6 +40,7 @@ class Product extends Base | @@ -40,6 +40,7 @@ class Product extends Base | ||
| 40 | public function getThumbAttribute($value){ | 40 | public function getThumbAttribute($value){ |
| 41 | $value = Arr::s2a($value); | 41 | $value = Arr::s2a($value); |
| 42 | $value['url'] = $this->getImageUrl($value['url']); | 42 | $value['url'] = $this->getImageUrl($value['url']); |
| 43 | + $value['image_link'] = $this->getImageUrl($value['url']); | ||
| 43 | return $value; | 44 | return $value; |
| 44 | } | 45 | } |
| 45 | 46 | ||
| @@ -54,6 +55,7 @@ class Product extends Base | @@ -54,6 +55,7 @@ class Product extends Base | ||
| 54 | $value = Arr::s2a($value); | 55 | $value = Arr::s2a($value); |
| 55 | foreach ($value as &$v){ | 56 | foreach ($value as &$v){ |
| 56 | $v['url'] = $this->getImageUrl($v['url']); | 57 | $v['url'] = $this->getImageUrl($v['url']); |
| 58 | + $v['image_link'] = $this->getImageUrl($v['url']); | ||
| 57 | } | 59 | } |
| 58 | return $value; | 60 | return $value; |
| 59 | } | 61 | } |
-
请 注册 或 登录 后发表评论