This commit is contained in:
richboo111
2022-08-04 13:34:51 +08:00
parent 96adca6623
commit ced6ba0951
2 changed files with 14 additions and 12 deletions

View File

@@ -284,14 +284,14 @@ 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 {
if _, err := dao.UpdateEntityTx(txdb, order, "TransactionID"); 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}