修改spu关联关系
parent
df8f56ef6f
commit
1db88d7a2d
|
|
@ -49,7 +49,7 @@ class ProductSpu extends Model
|
|||
|
||||
public function specs()
|
||||
{
|
||||
return $this->hasMany(ProductSpuSpec::class, 'product_spu_id');
|
||||
return $this->hasMany(ProductSpuSpec::class, 'spu_id');
|
||||
}
|
||||
|
||||
public function features()
|
||||
|
|
|
|||
Loading…
Reference in New Issue