更新查询

This commit is contained in:
mkm 2023-11-21 09:44:23 +08:00
parent 5867fe5895
commit 9b5ed65ae9

View File

@ -377,7 +377,7 @@ class Product extends BaseModel
}
public function content()
{
return $this->hasOne(ProductContent::class,'product_id','product_id');
return $this->hasOne(ProductContent::class,'product_id','product_id')->where('type',1);
}
protected function temp()
{