1
This commit is contained in:
parent
4d2fc95ed0
commit
13f17e49e0
@ -8,6 +8,7 @@ import (
|
||||
var Contribution = new(contribution)
|
||||
var _serviceMgr = new(serviceMgr)
|
||||
var GameSwitches = new(gameSwitch)
|
||||
var User = new(user)
|
||||
|
||||
func init() {
|
||||
global.RegModule(constant.SERVICE_MGR_MODULE_IDX, _serviceMgr)
|
||||
|
@ -5,8 +5,10 @@ type serviceMgr struct {
|
||||
|
||||
func (this *serviceMgr) Init() {
|
||||
Contribution.init()
|
||||
User.init()
|
||||
}
|
||||
|
||||
func (this *serviceMgr) UnInit() {
|
||||
Contribution.unInit()
|
||||
User.unInit()
|
||||
}
|
||||
|
21
server/marketserver/service/user.go
Normal file
21
server/marketserver/service/user.go
Normal file
@ -0,0 +1,21 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
type user struct {
|
||||
}
|
||||
|
||||
func (this *user) init(){
|
||||
}
|
||||
|
||||
func (this *user) unInit(){
|
||||
}
|
||||
|
||||
func (this *user) InBlackList(userIdentity string) (bool, error) {
|
||||
if strings.ToLower(userIdentity) == strings.ToLower("0x52f01e8791cb558c93ee0c59ea5ff5d79fc82044") {
|
||||
return true, nil
|
||||
}
|
||||
return false, nil
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user