1.修改用户使用运费包租赁时报错的问题;

This commit is contained in:
chenlin 2024-09-04 19:10:28 +08:00
parent 90d606835f
commit b96590ab28

View File

@ -398,7 +398,9 @@ func RentCardOrderCreate(c *gin.Context) {
//fmt.Println("PayPrice:", order.PayPrice)
if req.Price == 0 {
//tx := model.TransactionBegin()
if tx == nil {
tx = model.TransactionBegin()
}
order.PayStatus = model.PayStatusPaid
fmt.Println("orderId:", order.PayStatus)
err = order.OrderCreate(tx)