|
@@ -170,7 +170,7 @@ func withdraw(eg *xorm.Engine, msg *md.ZhiosAppreciation) error { |
|
|
coinSum := utils.GetPrec(utils.Float64ToStrByPrec(resp.TransferOut-resp.RefluxValue, 20), "4") |
|
|
coinSum := utils.GetPrec(utils.Float64ToStrByPrec(resp.TransferOut-resp.RefluxValue, 20), "4") |
|
|
price = utils.GetPrec(utils.Float64ToStrByPrec(resp.Price, 20), "4") |
|
|
price = utils.GetPrec(utils.Float64ToStrByPrec(resp.Price, 20), "4") |
|
|
err := svc.UpdateUserFinValidAndInterFlowSess(sess, |
|
|
err := svc.UpdateUserFinValidAndInterFlowSess(sess, |
|
|
newAmount, args["amount"]+"个积分转余额,价值"+price+"/个", "appreciation", 0, 56, utils.StrToInt(msg.Uid), utils.StrToInt(msg.Oid), utils.StrToInt64(msg.Oid), utils.StrToInt64(msg.Oid)) |
|
|
|
|
|
|
|
|
newAmount, args["amount"]+"个数字资产转余额,价值"+price+"/个", "appreciation", 0, 56, utils.StrToInt(msg.Uid), utils.StrToInt(msg.Oid), utils.StrToInt64(msg.Oid), utils.StrToInt64(msg.Oid)) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
sess.Rollback() |
|
|
sess.Rollback() |
|
|
return err |
|
|
return err |
|
|