update sendmsg params
This commit is contained in:
parent
13ef42edcc
commit
81f1c47c05
@ -35,7 +35,7 @@ func (this *Api_Comp) QueryUserPackReq(ctx context.Context, session comm.IUserSe
|
||||
items []*pb.ItemAmount
|
||||
)
|
||||
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 {
|
||||
code = pb.ErrorCode_NoLogin
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"go_dreamfactory/modules/login"
|
||||
"go_dreamfactory/modules/pack"
|
||||
"go_dreamfactory/modules/user"
|
||||
"go_dreamfactory/services"
|
||||
"go_dreamfactory/sys/cache"
|
||||
"go_dreamfactory/sys/db"
|
||||
@ -30,7 +30,7 @@ func main() {
|
||||
)
|
||||
lego.Run(s, //运行模块
|
||||
// web.NewModule(),
|
||||
login.NewModule(),
|
||||
user.NewModule(),
|
||||
pack.NewModule(),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user