Browse Source

feat: update

jerry 3 months ago
parent
commit
c33a7d8e84
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/services/product_service.py

+ 2 - 0
app/services/product_service.py

@@ -66,6 +66,8 @@ class ProductService:
         # 如果你当前 paginate 是同步实现,这里保持与你原项目一致
 
         stmt = select(VasProduct)
+        
+        stmt = stmt.where(VasProduct.enabled == 1)
 
         if country:
             stmt = stmt.where(VasProduct.country == country)