|
|
|
@ -78,6 +78,15 @@ class Goods extends Model |
|
|
|
return $query->orderBy('price', $sort); |
|
|
|
} |
|
|
|
|
|
|
|
public function getCoverImgAttribute($value) |
|
|
|
{ |
|
|
|
if(strripos($value,"http") === false){ |
|
|
|
return config('alioss.img_host').'/'.$value; |
|
|
|
}else{ |
|
|
|
return $value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public function getMonthSalesAttribute() |
|
|
|
{ |
|
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
|
|