|
|
@@ -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 {
|