|
|
@@ -155,6 +155,7 @@ func withdraw(eg *xorm.Engine, msg *md.ZhiosAppreciation) error { |
|
|
|
args := make(map[string]string) |
|
|
|
json.Unmarshal([]byte(msg.Ext), &args) |
|
|
|
//资产价值 |
|
|
|
price := "" |
|
|
|
appreciationWithdrawFee := db.SysCfgGetWithDb(eg, msg.Mid, "appreciation_withdraw_fee") |
|
|
|
appreciationWithdrawBack := db.SysCfgGetWithDb(eg, msg.Mid, "appreciation_withdraw_back") |
|
|
|
feeMap := md2.DealWithdrawalFeeResp{ |
|
|
@@ -167,8 +168,9 @@ func withdraw(eg *xorm.Engine, msg *md.ZhiosAppreciation) error { |
|
|
|
newAmount := utils.GetPrec(utils.Float64ToStrByPrec(resp.TransferOutValue-resp.AmountOut, 5), "4") |
|
|
|
//扣的 |
|
|
|
coinSum := utils.GetPrec(utils.Float64ToStrByPrec(resp.TransferOut-resp.RefluxValue, 20), "4") |
|
|
|
price = utils.GetPrec(utils.Float64ToStrByPrec(resp.Price, 5), "4") |
|
|
|
err := svc.UpdateUserFinValidAndInterFlowSess(sess, |
|
|
|
newAmount, args["amount"]+"个积分转余额", "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 { |
|
|
|
sess.Rollback() |
|
|
|
return err |
|
|
|