|
|
@@ -41,7 +41,7 @@ func (self *OrderController) Create() {
|
|
|
if count <= 0 {
|
|
|
self.ReturnError(403, apps.ParamsError, "", nil)
|
|
|
}
|
|
|
- product := product_model.GetProductById(pId, false)
|
|
|
+ product := product_model.GetProductById(pId, true)
|
|
|
if product == nil {
|
|
|
self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
}
|
|
|
@@ -185,7 +185,7 @@ func (self *OrderController) MultipleCreate() {
|
|
|
if cartItem.WxUserId != wxUId {
|
|
|
//self.ReturnError(403, apps.AccountError, "", nil)
|
|
|
}
|
|
|
- product := product_model.GetProductById(cartItem.ProductId, false)
|
|
|
+ product := product_model.GetProductById(cartItem.ProductId, true)
|
|
|
if product == nil {
|
|
|
self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
}
|
|
|
@@ -230,7 +230,7 @@ func (self *OrderController) MultipleCreate() {
|
|
|
if cartItem.WxUserId != wxUId {
|
|
|
//self.ReturnError(403, apps.AccountError, "", nil)
|
|
|
}
|
|
|
- product := product_model.GetProductById(cartItem.ProductId, false)
|
|
|
+ product := product_model.GetProductById(cartItem.ProductId, true)
|
|
|
if product == nil {
|
|
|
self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
}
|
|
|
@@ -285,7 +285,7 @@ func (self *OrderController) MultShopCreate() {
|
|
|
pId, _ := strconv.ParseInt(s_item, 10, 64)
|
|
|
cNums := int64(1)
|
|
|
cNums, _ = strconv.ParseInt(c_nums[key], 10, 64)
|
|
|
- product := product_model.GetProductById(pId, false)
|
|
|
+ product := product_model.GetProductById(pId, true)
|
|
|
if product == nil {
|
|
|
self.ReturnError(403, apps.NoExist, "", nil)
|
|
|
}
|