|
|
@ -94,6 +94,11 @@ class GoodsActivity extends Model |
|
|
return $this->attachmentService->switchImgToAliOss($value, OssThumbnail::THUMBNAIL_600_Q90); |
|
|
return $this->attachmentService->switchImgToAliOss($value, OssThumbnail::THUMBNAIL_600_Q90); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getNameAttribute($value) |
|
|
|
|
|
{ |
|
|
|
|
|
return $value . ' ' . $this->attributes['goods_unit']; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function store() |
|
|
public function store() |
|
|
{ |
|
|
{ |
|
|
return $this->belongsTo(Store::class, 'store_id', 'id'); |
|
|
return $this->belongsTo(Store::class, 'store_id', 'id'); |
|
|
|