作者 lyh

gx

@@ -41,8 +41,12 @@ class TaskLogic extends BaseLogic @@ -41,8 +41,12 @@ class TaskLogic extends BaseLogic
41 if($info === false){ 41 if($info === false){
42 $this->fail('error'); 42 $this->fail('error');
43 } 43 }
44 - $info = $this->getFileUrl($info);  
45 - $info['follow'] = $this->getFileUrl($info['follow']); 44 + if(!empty($info['attachment'])){
  45 + $info = $this->getFileUrl($info);
  46 + }
  47 + if(!empty($info['follow']['attachment'])){
  48 + $info['follow'] = $this->getFileUrl($info['follow']);
  49 + }
46 return $this->success($info); 50 return $this->success($info);
47 } 51 }
48 52