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