log
This commit is contained in:
@@ -208,11 +208,11 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
|
|||||||
globals.SugarLogger.Debugf("dgergergesgreger== %s ", order.OtherWayBill)
|
globals.SugarLogger.Debugf("dgergergesgreger== %s ", order.OtherWayBill)
|
||||||
globals.SugarLogger.Debugf("hjghauifhwquihfuiojqw== %s ", order.LastOperator)
|
globals.SugarLogger.Debugf("hjghauifhwquihfuiojqw== %s ", order.LastOperator)
|
||||||
if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("sdhgeagqweg344w33qgweag== %s ", order.OtherWayBill)
|
||||||
|
globals.SugarLogger.Debugf("jbhbhjdsgbgjhghiwsg== %s ", order.LastOperator)
|
||||||
if time.Now().Unix()-order.CreatedAt.Unix() <= 30 {
|
if time.Now().Unix()-order.CreatedAt.Unix() <= 30 {
|
||||||
return errors.New("支付成功后,超过30s才能取消")
|
return errors.New("支付成功后,超过30s才能取消")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user