|
@@ -51,7 +51,7 @@ func (m *GoodsDAO) SaveOrders(order *model.TaGoodsOrders) error {
|
51
|
51
|
order.IsPay = models.BOOL_TRUE // 默认已支付
|
52
|
52
|
order.CouponAmount = "0"
|
53
|
53
|
order.IsIntimidate = INTIMIDATE_NO
|
54
|
|
- order.DupKey = utils.GetFiveSeconds(now)
|
|
54
|
+ order.DupKey = utils.GetFiveSeconds(now) + order.UserId + order.TableId + strconv.Itoa(order.Status)
|
55
|
55
|
|
56
|
56
|
// 当前订单号的随机方式 = 时间 + 个人ID
|
57
|
57
|
ordersno := "G-" + now.Format("20060102150405") + "-" + strings.Join(utils.GUIID2IntString(order.UserId), "")
|