|
|
@@ -54,10 +54,10 @@ func DealTransferIn(session *xorm.Session, amount float64) (err error, value flo |
|
|
|
} |
|
|
|
|
|
|
|
// DealWithdrawalAndDestroy 处理给用户提现 |
|
|
|
func DealWithdrawalAndDestroy(session *xorm.Session, transferOut float64) (err error, resp md.DealWithdrawalAndDestroyResp) { |
|
|
|
transferOutValue := decimal.NewFromFloat(transferOut).Mul(md.WithdrawalCommissionFee) |
|
|
|
destroyValue := decimal.NewFromFloat(transferOut).Mul(md.WithdrawalDestroyFee) |
|
|
|
refluxValue := decimal.NewFromFloat(transferOut).Mul(md.WithdrawalRefluxFee) |
|
|
|
func DealWithdrawalAndDestroy(session *xorm.Session, feeMap md.DealWithdrawalFeeResp, transferOut float64) (err error, resp md.DealWithdrawalAndDestroyResp) { |
|
|
|
transferOutValue := decimal.NewFromFloat(transferOut).Mul(decimal.NewFromFloat(feeMap.WithdrawalCommissionFee)) |
|
|
|
destroyValue := decimal.NewFromFloat(transferOut).Mul(decimal.NewFromFloat(feeMap.WithdrawalDestroyFee)) |
|
|
|
refluxValue := decimal.NewFromFloat(transferOut).Mul(decimal.NewFromFloat(feeMap.WithdrawalRefluxFee)) |
|
|
|
err, nowValue := CalcAppreciationValue(session) |
|
|
|
if err != nil { |
|
|
|
return |
|
|
|