You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
486 B
23 lines
486 B
|
1 year ago
|
package pay
|
||
|
|
|
||
|
|
import (
|
||
|
|
"server/call"
|
||
|
|
"server/common"
|
||
|
|
"server/modules/pay/values"
|
||
|
|
"server/pb"
|
||
|
|
)
|
||
|
|
|
||
|
|
func loadConfig() error {
|
||
|
|
c := map[int][]func(*pb.ReloadGameConfig) error{}
|
||
|
|
c[common.ReloadConfigPayWeight] = []func(*pb.ReloadGameConfig) error{func(rgc *pb.ReloadGameConfig) error { return LoadPayWeight() }}
|
||
|
|
call.LoadConfigs(c)
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func LoadPayWeight() error {
|
||
|
|
values.PayWeightLock.Lock()
|
||
|
|
defer values.PayWeightLock.Unlock()
|
||
|
|
call.LoadConfigPayChannels()
|
||
|
|
return nil
|
||
|
|
}
|