refactor: 修改产品列表接口筛选

This commit is contained in:
2025-02-12 14:47:37 +08:00
parent def30f7c5e
commit 6180e6cd5f
2 changed files with 5 additions and 5 deletions

View File

@@ -71,11 +71,11 @@ class ProductModel extends ProductBaseModel
}
// 上架状态查询
public function scopeIsSaleNullable($query, bool|null $value)
public function scopeIsShowNullable($query, bool|null $value)
{
if (is_null($value)) {
return;
}
$query->where('is_sale', '=', (int)$value);
$query->where('is_show', '=', (int)$value);
}
}