|
|
|
@ -109,7 +109,11 @@ class Goods extends Model |
|
|
|
|
|
|
|
public function getCoverImgAttribute($value) |
|
|
|
{ |
|
|
|
return $this->attachmentService->switchImgToAliOss($value, OssThumbnail::THUMBNAIL_600_Q90); |
|
|
|
if(!empty($value)) { |
|
|
|
return $this->attachmentService->switchImgToAliOss($value, OssThumbnail::THUMBNAIL_600_Q90); |
|
|
|
}else{ |
|
|
|
return ''; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public function getMonthSalesAttribute() |
|
|
|
|