Explorar o código

cent area add size

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
9f9b64bbdf

+ 4 - 1
go/gopath/src/fohow.com/apps/controllers/order_controller/order_controller.go

@@ -375,7 +375,10 @@ func (self *OrderController) MultCentCreate() {
 		if product == nil {
 			self.ReturnError(403, apps.NoExist, "", nil)
 		}
-		if product.Ptype != product_model.CENT_SALE {
+
+		//专区商品改为判断主商品
+		relatePrd := product_model.GetProductById(product.RelateProductId, true)
+		if relatePrd != nil && relatePrd.Ptype != product_model.CENT_SALE {
 			self.ReturnError(403, apps.NoShopSale, "", nil)
 		}
 		if product.SinglePurchLimit > 0 {