21 lines
659 B
Go
21 lines
659 B
Go
package reputation
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/lego/sys/log"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
func (this *apiComp) TalenttestCheck(session comm.IUserSession, req *pb.ReputationTalenttestReq) (errdata *pb.ErrorData) {
|
|
return
|
|
}
|
|
|
|
func (this *apiComp) Talenttest(session comm.IUserSession, req *pb.ReputationTalenttestReq) (errdata *pb.ErrorData) {
|
|
rsp := &pb.ReputationTalenttestResp{}
|
|
lv := this.module.Upgrade(session, req.RaceType, req.FriendValue)
|
|
this.module.Debug("声望", log.Field{Key: "阵营", Value: req.RaceType}, log.Field{Key: "等级", Value: lv})
|
|
|
|
session.SendMsg(string(this.module.GetType()), "talenttest", rsp)
|
|
return
|
|
}
|