作者 张关杰

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

... ... @@ -36,12 +36,12 @@ class Category extends Base
public function getImageAttribute($value)
{
return $this->getImageUrl($value);
return Upload::path2url($value);
}
public function setImageAttribute($value)
{
$this->attributes['image'] = $value;
$this->attributes['image'] = Upload::url2path($value);
}
... ...