diff --git a/server/marketserver/service/export.go b/server/marketserver/service/export.go index f41910a9..ff5606f2 100644 --- a/server/marketserver/service/export.go +++ b/server/marketserver/service/export.go @@ -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) diff --git a/server/marketserver/service/servicemgr.go b/server/marketserver/service/servicemgr.go index 14997cfe..4e9d8baa 100644 --- a/server/marketserver/service/servicemgr.go +++ b/server/marketserver/service/servicemgr.go @@ -5,8 +5,10 @@ type serviceMgr struct { func (this *serviceMgr) Init() { Contribution.init() + User.init() } func (this *serviceMgr) UnInit() { Contribution.unInit() + User.unInit() } diff --git a/server/marketserver/service/user.go b/server/marketserver/service/user.go new file mode 100644 index 00000000..68913856 --- /dev/null +++ b/server/marketserver/service/user.go @@ -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 +}