This commit is contained in:
aozhiwei 2024-08-23 16:22:28 +08:00
parent 4d2fc95ed0
commit 13f17e49e0
3 changed files with 24 additions and 0 deletions

View File

@ -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)

View File

@ -5,8 +5,10 @@ type serviceMgr struct {
func (this *serviceMgr) Init() {
Contribution.init()
User.init()
}
func (this *serviceMgr) UnInit() {
Contribution.unInit()
User.unInit()
}

View 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
}