refactor: 产品详细接口关联产品字段添加spu返回
This commit is contained in:
@@ -22,7 +22,7 @@ class ProductModel extends ProductBaseModel
|
||||
// 分类关联查询
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo('ProductCategoryModel', 'category_id', 'id');
|
||||
return $this->belongsTo(ProductCategoryModel::class, 'category_id', 'id');
|
||||
}
|
||||
|
||||
// 搜索器名称
|
||||
|
||||
Reference in New Issue
Block a user