Browse Source

Merge branch 'phoenix' of http://120.24.33.109:11081/hyzjshwo/lanzu_api_hyperf into phoenix

master
Lemon 5 years ago
parent
commit
1235f2ffdc
  1. 10
      app/Model/v3/Goods.php

10
app/Model/v3/Goods.php

@ -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);

Loading…
Cancel
Save