重置水池
This commit is contained in:
parent
05f1e805b5
commit
6bd9d8f6c5
|
|
@ -459,16 +459,6 @@ func (this *CoinPoolManager) ResetCoinPool(wgRcp *server.WGResetCoinPool) {
|
|||
this.CoinPool.Store(key, value)
|
||||
logger.Logger.Infof("$$$$$$$$金币池 %v 重置金币 %v.$$$$$$$$", key, value)
|
||||
|
||||
value = wgRcp.GetValue()
|
||||
if value == -1 {
|
||||
initValue := setting.GetInitNoviceValue()
|
||||
if initValue != 0 { //初始化水池
|
||||
value = initValue
|
||||
}
|
||||
}
|
||||
this.NoviceCoinPool.Store(key, value)
|
||||
logger.Logger.Infof("$$$$$$$$新手金币池 %v 重置金币 %v.$$$$$$$$", key, value)
|
||||
|
||||
case 2: //营收池
|
||||
value := int64(wgRcp.GetValue())
|
||||
if value == -1 {
|
||||
|
|
@ -493,6 +483,16 @@ func (this *CoinPoolManager) ResetCoinPool(wgRcp *server.WGResetCoinPool) {
|
|||
}
|
||||
this.ProfitPool.Store(key, value)
|
||||
logger.Logger.Infof("$$$$$$$$营收池 %v 重置金币 %v.$$$$$$$$", key, value)
|
||||
case 8: // 新手池
|
||||
value := wgRcp.GetValue()
|
||||
if value == -1 {
|
||||
initValue := setting.GetInitNoviceValue()
|
||||
if initValue != 0 { //初始化水池
|
||||
value = initValue
|
||||
}
|
||||
}
|
||||
this.NoviceCoinPool.Store(key, value)
|
||||
logger.Logger.Infof("$$$$$$$$新手金币池 %v 重置金币 %v.$$$$$$$$", key, value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue