@@ -446,12 +446,12 @@ func PresentTransferToOrder(orderId string, wxUid int64) {
// 获取所有未写入赠品记录
presents := promotion_model.GetAllNoPatchPresents(wxUid)
for _, item := range presents {
- item.OrderId = orderId
- item.Status = true
- item.Save()
//赠送赠品
product := product_model.GetProductById(item.SendProd, true)
if product != nil {
+ item.OrderId = orderId
+ item.Status = true
+ item.Save()
order_model.SendCreate(order.OrderId, order.Id, product.Id, product.Price, product.Price, product.Name, item.SendNums, order.Depart)
}