|
|
@@ -467,7 +467,7 @@ func DealIntegralReleaseInterpositionUserAmount(session *xorm.Session, req md.De |
|
|
|
integralReleaseInterpositionUserFlow.BeforeAlreadyAmount = alreadyAmountValue.String() |
|
|
|
integralReleaseInterpositionUserFlow.AfterAlreadyAmount = alreadyAmountValue.String() |
|
|
|
} else if req.Kind == "sub" { |
|
|
|
integralReleaseInterpositionUserFlow.Kind = 1 |
|
|
|
integralReleaseInterpositionUserFlow.Kind = 2 |
|
|
|
integralReleaseInterpositionUserFlow.BeforeTotalAmount = totalAmountValue.String() |
|
|
|
integralReleaseInterpositionUserFlow.AfterTotalAmount = totalAmountValue.String() |
|
|
|
integralReleaseInterpositionUserFlow.BeforeWaiteAmount = waiteAmountValue.String() |
|
|
@@ -479,7 +479,7 @@ func DealIntegralReleaseInterpositionUserAmount(session *xorm.Session, req md.De |
|
|
|
if req.CoinId == 0 { |
|
|
|
orderType := enum.FinUserFlowOrderActionString(md.IntegralReleaseServiceRevenueOrderTypeForFinUserFlow) |
|
|
|
var dealUserAmount = md.DealUserAmount{ |
|
|
|
Kind: req.Kind, |
|
|
|
Kind: "add", |
|
|
|
Mid: req.Mid, |
|
|
|
Title: md.IntegralReleaseServiceRevenueTitleForFinUserFlow, |
|
|
|
OrderType: orderType, |
|
|
@@ -492,6 +492,18 @@ func DealIntegralReleaseInterpositionUserAmount(session *xorm.Session, req md.De |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
} else { |
|
|
|
//释放服务收益 |
|
|
|
err = DealUserCoinForIntegralRelease(session, md.DealUserCoinReq{ |
|
|
|
Kind: "add", |
|
|
|
Mid: req.Mid, |
|
|
|
Title: md.IntegralReleaseServiceRevenueTitleForUserVirtualCoinFlow, |
|
|
|
TransferType: md.IntegralReleaseServiceRevenueTransferTypeForUserVirtualCoinFlow, |
|
|
|
OrdId: req.OrdId, |
|
|
|
CoinId: req.CoinId, |
|
|
|
Uid: req.Uid, |
|
|
|
Amount: req.Amount, |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
err = errors.New("错误的kind类型") |
|
|
|