|
|
@@ -298,9 +298,12 @@ func (self *OrderController) MultShopCreate() {
|
|
|
if product == nil {
|
|
|
self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
}
|
|
|
- if product.Ptype != product_model.SHOP_SALE {
|
|
|
+ //专区商品改为判断主商品
|
|
|
+ relatePrd := product_model.GetProductById(product.RelateProductId, true)
|
|
|
+ if relatePrd != nil && relatePrd.Ptype != product_model.SHOP_SALE {
|
|
|
self.ReturnError(403, apps.NoShopSale, "", nil)
|
|
|
}
|
|
|
+
|
|
|
if product.SinglePurchLimit > 0 {
|
|
|
if product.SinglePurchLimit < cNums {
|
|
|
self.ReturnError(403, []string{apps.SingleOverLimitCount[0], fmt.Sprintf("%s商品单次限购%d件", product.Name, product.SinglePurchLimit)}, "", nil)
|