|
|
@ -42,11 +42,11 @@ class ActiveMain extends ActiveMainModel |
|
|
|
|
|
|
|
|
|
|
|
public function getIndexIconAttr($value, $data) { |
|
|
|
public function getIndexIconAttr($value, $data) { |
|
|
|
$file = $this->with('indexImage')->find(); |
|
|
|
$file = $this->with('indexImage')->find(); |
|
|
|
return $file['indexImage']['preview_url']; |
|
|
|
return $file['index_image_url']; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getThemePicAttr($value, $data) { |
|
|
|
public function getThemePicAttr($value, $data) { |
|
|
|
$file = $this->with('themeImage')->find(); |
|
|
|
$file = $this->with('themeImage')->find(); |
|
|
|
return $file['themeImage']['preview_url']; |
|
|
|
return $file['theme_image_url']; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|