作者 lyh

gx

@@ -36,12 +36,12 @@ class Category extends Base @@ -36,12 +36,12 @@ class Category extends Base
36 36
37 public function getImageAttribute($value) 37 public function getImageAttribute($value)
38 { 38 {
39 - return $this->getImageUrl($value); 39 + return Upload::path2url($value);
40 } 40 }
41 41
42 public function setImageAttribute($value) 42 public function setImageAttribute($value)
43 { 43 {
44 - $this->attributes['image'] = $value; 44 + $this->attributes['image'] = Upload::url2path($value);
45 } 45 }
46 46
47 47