update sendmsg params

This commit is contained in:
zhaocy 2022-06-06 18:50:12 +08:00
parent 13ef42edcc
commit 81f1c47c05
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ func (this *Api_Comp) QueryUserPackReq(ctx context.Context, session comm.IUserSe
items []*pb.ItemAmount items []*pb.ItemAmount
) )
defer func() { defer func() {
session.SendMsg(QueryUserPackResp, &pb.QueryUserPackResp{Code: code, Items: items}) session.SendMsg("pack", "queryuserpackresp", &pb.QueryUserPackResp{Code: code, Items: items})
}() }()
if session.GetUserId() == 0 { if session.GetUserId() == 0 {
code = pb.ErrorCode_NoLogin code = pb.ErrorCode_NoLogin

View File

@ -3,8 +3,8 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"go_dreamfactory/modules/login"
"go_dreamfactory/modules/pack" "go_dreamfactory/modules/pack"
"go_dreamfactory/modules/user"
"go_dreamfactory/services" "go_dreamfactory/services"
"go_dreamfactory/sys/cache" "go_dreamfactory/sys/cache"
"go_dreamfactory/sys/db" "go_dreamfactory/sys/db"
@ -30,7 +30,7 @@ func main() {
) )
lego.Run(s, //运行模块 lego.Run(s, //运行模块
// web.NewModule(), // web.NewModule(),
login.NewModule(), user.NewModule(),
pack.NewModule(), pack.NewModule(),
) )