|
@@ -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("失败") |
|
|