This commit is contained in:
richboo111
2022-07-27 10:26:53 +08:00
parent 18c27229e6
commit 4a3f6b114c

View File

@@ -208,11 +208,11 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
globals.SugarLogger.Debugf("dgergergesgreger== %s ", order.OtherWayBill)
globals.SugarLogger.Debugf("hjghauifhwquihfuiojqw== %s ", order.LastOperator)
if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil {
globals.SugarLogger.Debugf("sdhgeagqweg344w33qgweag== %s ", order.OtherWayBill)
globals.SugarLogger.Debugf("jbhbhjdsgbgjhghiwsg== %s ", order.LastOperator)
return err
}
globals.SugarLogger.Debugf("sdhgeagqweg344w33qgweag== %s ", order.OtherWayBill)
globals.SugarLogger.Debugf("jbhbhjdsgbgjhghiwsg== %s ", order.LastOperator)
if time.Now().Unix()-order.CreatedAt.Unix() <= 30 {
return errors.New("支付成功后超过30s才能取消")
}