重置水池
This commit is contained in:
parent
7219ddaed8
commit
c09c059b79
|
|
@ -459,16 +459,6 @@ func (this *CoinPoolManager) ResetCoinPool(wgRcp *server.WGResetCoinPool) {
|
||||||
this.CoinPool.Store(key, value)
|
this.CoinPool.Store(key, value)
|
||||||
logger.Logger.Infof("$$$$$$$$金币池 %v 重置金币 %v.$$$$$$$$", 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: //营收池
|
case 2: //营收池
|
||||||
value := int64(wgRcp.GetValue())
|
value := int64(wgRcp.GetValue())
|
||||||
if value == -1 {
|
if value == -1 {
|
||||||
|
|
@ -493,6 +483,16 @@ func (this *CoinPoolManager) ResetCoinPool(wgRcp *server.WGResetCoinPool) {
|
||||||
}
|
}
|
||||||
this.ProfitPool.Store(key, value)
|
this.ProfitPool.Store(key, value)
|
||||||
logger.Logger.Infof("$$$$$$$$营收池 %v 重置金币 %v.$$$$$$$$", 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