This commit is contained in:
邹宗楠
2022-07-04 19:49:31 +08:00
parent 18b54a0c07
commit 9f208b9a9c

View File

@@ -205,8 +205,8 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
}
globals.SugarLogger.Debug("time.Now().Unix()-order.CreatedAt.Unix()", time.Now().Unix()-order.CreatedAt.Unix())
if time.Now().Unix()-order.CreatedAt.Unix() <= 15 {
return errors.New("操作台频繁,请稍后再取消")
if time.Now().Unix()-order.CreatedAt.Unix() <= 60 {
return errors.New("支付成功后,超过一分钟才能取消")
}
// 待支付或者支付失败