diff --git a/comm/imodule.go b/comm/imodule.go index d0304ad1c..29ac45894 100644 --- a/comm/imodule.go +++ b/comm/imodule.go @@ -113,7 +113,7 @@ type ( // 随机任务 IRtask interface { //任务触发 - SendToRtask(session IUserSession, rtaskType int32, params ...interface{}) (code pb.ErrorCode) + SendToRtask(session IUserSession, rtaskType int32, params ...int32) (code pb.ErrorCode) } //好友 diff --git a/modules/rtask/module.go b/modules/rtask/module.go index 52a61a17f..113691115 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -114,6 +114,6 @@ func (this *ModuleRtask) initRtaskHandle() { } } -func SendToRtask(session comm.IUserSession, rtaskType int32, params ...interface{}) (code pb.ErrorCode) { +func SendToRtask(session comm.IUserSession, rtaskType int32, params ...int32) (code pb.ErrorCode) { return }