更新查询
This commit is contained in:
parent
5867fe5895
commit
9b5ed65ae9
@ -377,7 +377,7 @@ class Product extends BaseModel
|
|||||||
}
|
}
|
||||||
public function content()
|
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()
|
protected function temp()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user