Browse Source

更新

one_orenge
huangjiajun 7 months ago
parent
commit
494fe3f746
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consume/canal_user_virtual_coin_flow_consume.go

+ 1
- 1
consume/canal_user_virtual_coin_flow_consume.go View File

@@ -88,7 +88,7 @@ func handleCanalOneOrengeUserVirtualCoinFlow(msg []byte) error {
return errors.New("失败") return errors.New("失败")
} }
amountUser.Amount = utils.Float64ToStrByPrec(utils.StrToFloat64(canalMsg.Data[0].Amout)+utils.StrToFloat64(amountUser.Amount), 8) 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 { if update == 0 || err != nil {
sess.Rollback() sess.Rollback()
return errors.New("失败") return errors.New("失败")


Loading…
Cancel
Save