|
|
@ -92,6 +92,16 @@ class Goods extends Model |
|
|
return $this->attachmentService->switchImgToAliOss($value); |
|
|
return $this->attachmentService->switchImgToAliOss($value); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getTagsAttribute($value) |
|
|
|
|
|
{ |
|
|
|
|
|
if($value){ |
|
|
|
|
|
$value = str_replace('"','',$value); |
|
|
|
|
|
$value = explode(',',$value); |
|
|
|
|
|
return $value; |
|
|
|
|
|
} |
|
|
|
|
|
return $value; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function getMonthSalesAttribute() |
|
|
public function getMonthSalesAttribute() |
|
|
{ |
|
|
{ |
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
|