Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
10 行增加
和
10 行删除
| @@ -32,10 +32,10 @@ class Product extends Base | @@ -32,10 +32,10 @@ class Product extends Base | ||
| 32 | ]; | 32 | ]; |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | - public function setThumbAttribute($value){ | ||
| 36 | - $value['url'] = Upload::url2path($value['url']); | ||
| 37 | - $this->attributes['thumb'] = Arr::a2s($value); | ||
| 38 | - } | 35 | +// public function setThumbAttribute($value){ |
| 36 | +// $value['url'] = Upload::url2path($value['url']); | ||
| 37 | +// $this->attributes['thumb'] = Arr::a2s($value); | ||
| 38 | +// } | ||
| 39 | 39 | ||
| 40 | public function getThumbAttribute($value){ | 40 | public function getThumbAttribute($value){ |
| 41 | $value = Arr::s2a($value); | 41 | $value = Arr::s2a($value); |
| @@ -43,12 +43,12 @@ class Product extends Base | @@ -43,12 +43,12 @@ class Product extends Base | ||
| 43 | return $value; | 43 | return $value; |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | - public function setGalleryAttribute($value){ | ||
| 47 | - foreach ($value as &$v){ | ||
| 48 | - $v['url'] = Upload::url2path($v['url']); | ||
| 49 | - } | ||
| 50 | - $this->attributes['gallery'] = Arr::a2s($value); | ||
| 51 | - } | 46 | +// public function setGalleryAttribute($value){ |
| 47 | +// foreach ($value as &$v){ | ||
| 48 | +// $v['url'] = Upload::url2path($v['url']); | ||
| 49 | +// } | ||
| 50 | +// $this->attributes['gallery'] = Arr::a2s($value); | ||
| 51 | +// } | ||
| 52 | 52 | ||
| 53 | public function getGalleryAttribute($value){ | 53 | public function getGalleryAttribute($value){ |
| 54 | $value = Arr::s2a($value); | 54 | $value = Arr::s2a($value); |
-
请 注册 或 登录 后发表评论