|
|
@@ -151,10 +151,10 @@ func (self *PayController) payExchange(oId, payWay, tradPwd, returnUrl, source s
|
|
|
} else {
|
|
|
productId = order_model.SEND_PRODUCT_ID
|
|
|
}
|
|
|
- saleList := order_model.GetWxUserOrders(wxUser.Id)
|
|
|
+ //saleList := order_model.GetWxUserOrders(wxUser.Id)
|
|
|
//beego.BeeLogger.Error("en(saleList)=%d", len(saleList))
|
|
|
// 七月注册会员首单赠送赠品
|
|
|
- if order.TotalPrice >= order_model.PROMOTION_TOTAL && len(saleList) == 1 {
|
|
|
+ if order.TotalPrice >= order_model.PROMOTION_TOTAL {
|
|
|
product := product_model.GetProductById(productId, false)
|
|
|
go order_model.SendCreate(order.OrderId, order.Id, productId, product.Price, product.Price, product.Name, int64(1))
|
|
|
}
|