feat: 产品

refactor: 产品详情页seo
This commit is contained in:
2025-04-24 10:21:45 +08:00
parent 49c865bf85
commit e2265629f9
43 changed files with 592 additions and 63 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare (strict_types = 1);
namespace app\index\model;
use app\common\model\ProductSkuAttrBaseModel;
/**
* 产品SKU属性模型
* @mixin \think\Model
*/
class ProductSkuAttrModel extends ProductSkuAttrBaseModel
{
// 所属sku范围查询
public function scopeBySkuId($query, $sku_ids)
{
return $query->where('sku_id', 'IN', $sku_ids);
}
}