23 lines
595 B
Go
23 lines
595 B
Go
package practice
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
//参数校验
|
|
func (this *apiComp) GymConfirmCheck(session comm.IUserSession, req *pb.PracticeGymConfirmReq) (errdata *pb.ErrorData) {
|
|
|
|
return
|
|
}
|
|
|
|
///练功请求
|
|
func (this *apiComp) GymConfirm(session comm.IUserSession, req *pb.PracticeGymConfirmReq) (errdata *pb.ErrorData) {
|
|
|
|
this.module.ModuleUser.ChangeUserExpand(session.GetUserId(), map[string]interface{}{
|
|
"globalbuff": req.Buffid,
|
|
})
|
|
session.SendMsg(string(this.module.GetType()), "gymconfirm", &pb.PracticeGymConfirmResp{Buffid: req.Buffid})
|
|
return
|
|
}
|