作者 lyh

gx

@@ -42,7 +42,7 @@ class Task extends Base @@ -42,7 +42,7 @@ class Task extends Base
42 } 42 }
43 43
44 public function setAttachmentAttribute($value){ 44 public function setAttachmentAttribute($value){
45 - $this->attributes['attachment'] = Upload::url2path($value); 45 + $this->attributes['attachment'] = getFileUrl($value);
46 } 46 }
47 47
48 public function getAttachmentAttribute($value){ 48 public function getAttachmentAttribute($value){