正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -49,7 +49,7 @@ class Product extends Base | @@ -49,7 +49,7 @@ class Product extends Base | ||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | public function getThumbAttribute($value){ | 51 | public function getThumbAttribute($value){ |
| 52 | - $value = json_decode($value); | 52 | + $value = json_decode($value,true); |
| 53 | $value['url'] = getImageUrl($value['url']); | 53 | $value['url'] = getImageUrl($value['url']); |
| 54 | return $value; | 54 | return $value; |
| 55 | } | 55 | } |
-
请 注册 或 登录 后发表评论