作者 lyh

gx

@@ -42,11 +42,11 @@ class Task extends Base @@ -42,11 +42,11 @@ class Task extends Base
42 } 42 }
43 43
44 public function setAttachmentAttribute($value){ 44 public function setAttachmentAttribute($value){
45 - $this->attributes['attachment'] = getFileUrl($value); 45 + $this->attributes['attachment'] = $value;
46 } 46 }
47 47
48 public function getAttachmentAttribute($value){ 48 public function getAttachmentAttribute($value){
49 - return Upload::path2url($value); 49 + return getFileUrl($value);
50 } 50 }
51 51
52 public function getTimeoutAttribute(){ 52 public function getTimeoutAttribute(){