瀏覽代碼

cent sale add

abiao 5 年之前
父節點
當前提交
675566721d

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

@@ -273,7 +273,7 @@ func (self *OrderController) MultCentCreate() {
 		if product == nil {
 			self.ReturnError(403, apps.NoExist, "", nil)
 		}
-		if product.Ptype != product_model.SHOP_SALE {
+		if product.Ptype != product_model.CENT_SALE {
 			self.ReturnError(403, apps.NoShopSale, "", nil)
 		}
 

+ 1 - 0
go/gopath/src/fohow.com/apps/models/product_model/product.go

@@ -21,6 +21,7 @@ const (
 	TYPE_USER_SALE   = "user_sale"   //代销
 	TYPE_DIRECT_SALE = "direct_sale" //直营
 	SHOP_SALE        = "shop_sale"   //店铺专区
+	CENT_SALE        = "cent_sale"   //积分专区
 
 	SECKILL_NONE_STATE         = "none"
 	SECKILL_NONE_STATE_CN      = "暂无秒杀"