上传代码

This commit is contained in:
liwei1dao 2023-04-04 14:12:39 +08:00
parent f1e7ea36ef
commit fe8aaf9170
2 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,10 @@ type (
ITaskComplete interface {
TaskComplete(session IUserSession, taskid int32)
}
//功能开启通知
IOpenCmdNotice interface {
OpenCmdNotice(session IUserSession, key string)
}
)
/*
@ -439,6 +443,7 @@ type (
//练功房
IPractice interface {
ITaskComplete
IOpenCmdNotice
//添加武馆资源
AddItems(session IUserSession, items map[string]int32, bPush bool) (code pb.ErrorCode)
//pvp切磋结果通知

View File

@ -55,6 +55,7 @@ func (this *Practice) Init(service core.IService, module core.IModule, options c
this.service = service.(base.IRPCXService)
return
}
func (this *Practice) Start() (err error) {
err = this.ModuleBase.Start()
var module core.IModule
@ -189,6 +190,10 @@ func (this *Practice) TaskComplete(session comm.IUserSession, taskid int32) {
}
}
func (this *Practice) OpenCmdNotice(session comm.IUserSession, key string) {
}
func (this *Practice) ChallengeResults(bid, red, bule string, winSide int32) {
this.Debug("ChallengeResults",
log.Field{Key: "bid", Value: bid},