From 494fe3f746ed019e2aafcb342134c00ea6a5b958 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 26 Apr 2024 13:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/canal_user_virtual_coin_flow_consume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consume/canal_user_virtual_coin_flow_consume.go b/consume/canal_user_virtual_coin_flow_consume.go index 34801fe..6476056 100644 --- a/consume/canal_user_virtual_coin_flow_consume.go +++ b/consume/canal_user_virtual_coin_flow_consume.go @@ -88,7 +88,7 @@ func handleCanalOneOrengeUserVirtualCoinFlow(msg []byte) error { return errors.New("失败") } amountUser.Amount = utils.Float64ToStrByPrec(utils.StrToFloat64(canalMsg.Data[0].Amout)+utils.StrToFloat64(amountUser.Amount), 8) - update, err = sess.Where("id=?", amountDate.Id).Cols("amount").Update(amountUser) + update, err = sess.Where("id=?", amountUser.Id).Cols("amount").Update(amountUser) if update == 0 || err != nil { sess.Rollback() return errors.New("失败")