作者 开飞机的舒克

活动详情接口新增多张图片

@@ -23,7 +23,15 @@ class Active extends Model @@ -23,7 +23,15 @@ class Active extends Model
23 return $value; 23 return $value;
24 } 24 }
25 25
26 - public function getDepictAttr ($value,$data){ 26 + public function getImagesAttr($value,$data){
  27 + $images = explode(',',$data['images']);
  28 + foreach ($images as $k){
  29 + $list[] = cdnurl($data['images'],true);
  30 + }
  31 + return $list;
  32 + }
  33 +
  34 + public function getDepictAttr($value,$data){
27 $value = strip_tags($data['depict']); 35 $value = strip_tags($data['depict']);
28 return $value; 36 return $value;
29 } 37 }