|
@@ -92,8 +92,8 @@ func handleEggEnergyStartLevelDividendConsume(msgData []byte) error { |
|
|
|
|
|
|
|
|
err = rule.DealUserVirtualCoin(session, md3.DealUserVirtualCoinReq{ |
|
|
err = rule.DealUserVirtualCoin(session, md3.DealUserVirtualCoinReq{ |
|
|
Kind: "add", |
|
|
Kind: "add", |
|
|
Title: enum.UserVirtualAmountFlowTransferType.String(enum.EggEnergyCommunityDividends), |
|
|
|
|
|
TransferType: int(enum.EggEnergyCommunityDividends), |
|
|
|
|
|
|
|
|
Title: enum.UserVirtualAmountFlowTransferType.String(enum.SettlementStarLevelDividends), |
|
|
|
|
|
TransferType: int(enum.SettlementStarLevelDividends), |
|
|
CoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId, |
|
|
CoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId, |
|
|
Uid: msg.Uid, |
|
|
Uid: msg.Uid, |
|
|
Amount: msg.SignDividend, |
|
|
Amount: msg.SignDividend, |
|
@@ -102,5 +102,5 @@ func handleEggEnergyStartLevelDividendConsume(msgData []byte) error { |
|
|
session.Rollback() |
|
|
session.Rollback() |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
return session.Begin() |
|
|
|
|
|
|
|
|
return session.Commit() |
|
|
} |
|
|
} |