|
@@ -352,9 +352,10 @@ func SettlementStarLevelDividends(engine *xorm.Engine, masterId string, ch *rabb |
|
|
siginDividend, _ := siginDividendValue.Float64() |
|
|
siginDividend, _ := siginDividendValue.Float64() |
|
|
if siginDividend > 0 { |
|
|
if siginDividend > 0 { |
|
|
//TODO::推入rabbitmq 异步处理 |
|
|
//TODO::推入rabbitmq 异步处理 |
|
|
ch.Publish(md.OneCirclesExchange, md.OneCirclesStructForAutoExchangeGreenEnergy{ |
|
|
|
|
|
MasterId: masterId, |
|
|
|
|
|
Uid: item.Uid, |
|
|
|
|
|
|
|
|
ch.Publish(md.OneCirclesExchange, md.OneCirclesStructForStarLevelDividends{ |
|
|
|
|
|
MasterId: masterId, |
|
|
|
|
|
Uid: item.Uid, |
|
|
|
|
|
SignDividend: siginDividend, |
|
|
}, md.OneCirclesRoutKeyForStarLevelDividend) |
|
|
}, md.OneCirclesRoutKeyForStarLevelDividend) |
|
|
|
|
|
|
|
|
totalDividendValue = totalDividendValue.Add(siginDividendValue) |
|
|
totalDividendValue = totalDividendValue.Add(siginDividendValue) |
|
|