This commit is contained in:
richboo111
2022-08-04 11:46:43 +08:00
parent 33f0594a6e
commit e754065a5d
2 changed files with 13 additions and 3 deletions

View File

@@ -282,10 +282,17 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) {
}
}()
globals.SugarLogger.Debug("更新order")
order.TransactionID = call.TrxID
globals.SugarLogger.Debug("输出赋值后的order.TransactionID", order.TransactionID)
if _, err := dao.UpdateEntityTx(txdb, order); err != nil {
dao.Rollback(db, txdb)
return err
}
//测试order 数据库是否更新成功
order_test, err := dao.GetOrderByID(db, order.OrderID)
globals.SugarLogger.Debug("再次从数据库拿order.TransactionID", order_test.TransactionID)
//、、、、、、、、、、、、、、
globals.SugarLogger.Debug("获取UserVendorOrder")
userOrder := model.UserVendorOrder{LocalWayBill: order.OrderID}
if err := dao.GetEntity(db, &userOrder, "LocalWayBill"); err != nil {