- 将产品查询的限制从 50 条调整为 20 条 - 优化数据库查询性能,减少不必要的数据加载 - 确保前端页面响应速度和用户体验的一致性
@@ -58,7 +58,7 @@ class Test
->where('cate_id', 0)
->where('is_del', 0)
->field('product_id, store_name, spu_id, image, price, is_alibaba')
- ->limit(50)
+ ->limit(20)
->select()
->toArray();