瀏覽代碼

专区商品每页数量调整

abiao 5 年之前
父節點
當前提交
94aeeeb61d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

+ 3 - 0
go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

@@ -34,6 +34,9 @@ func (self *ProductController) Latest() {
 	if len(ptype) == 0 {
 		ptype = product_model.TYPE_DIRECT_SALE
 	}
+	if ptype == product_model.SHOP_SALE {
+		perPage = int64(20)
+	}
 	type Ret struct {
 		List      []*product_model.Product `json:"list"`
 		ListCount int64                    `json:"list_count"`