1.修改用户使用运费包租赁时报错的问题;
This commit is contained in:
parent
90d606835f
commit
b96590ab28
|
@ -398,7 +398,9 @@ func RentCardOrderCreate(c *gin.Context) {
|
||||||
|
|
||||||
//fmt.Println("PayPrice:", order.PayPrice)
|
//fmt.Println("PayPrice:", order.PayPrice)
|
||||||
if req.Price == 0 {
|
if req.Price == 0 {
|
||||||
//tx := model.TransactionBegin()
|
if tx == nil {
|
||||||
|
tx = model.TransactionBegin()
|
||||||
|
}
|
||||||
order.PayStatus = model.PayStatusPaid
|
order.PayStatus = model.PayStatusPaid
|
||||||
fmt.Println("orderId:", order.PayStatus)
|
fmt.Println("orderId:", order.PayStatus)
|
||||||
err = order.OrderCreate(tx)
|
err = order.OrderCreate(tx)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user