上传兔子猎犬
This commit is contained in:
parent
a63be757e5
commit
57f0b8963d
@ -14,9 +14,8 @@ func (this *apiComp) SingleOverCheck(session comm.IUserSession, req *pb.CanineRa
|
||||
|
||||
func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.CanineRabbitSingleOverReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
info *pb.DBCanineRabbit
|
||||
integral int32
|
||||
err error
|
||||
info *pb.DBCanineRabbit
|
||||
err error
|
||||
)
|
||||
if errdata = this.SingleOverCheck(session, req); errdata != nil {
|
||||
return
|
||||
@ -30,10 +29,8 @@ func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.CanineRabbitS
|
||||
}
|
||||
if req.Stype == 0 {
|
||||
info.Rabbitintegral += 1
|
||||
integral = info.Rabbitintegral
|
||||
} else {
|
||||
info.Houndintegral += 1
|
||||
integral = info.Houndintegral
|
||||
}
|
||||
|
||||
if err = this.module.model.Change(session.GetUserId(), map[string]interface{}{
|
||||
@ -46,6 +43,6 @@ func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.CanineRabbitS
|
||||
}
|
||||
return
|
||||
}
|
||||
session.SendMsg(string(this.module.GetType()), "singleover", &pb.DColorSingleOverResp{Integral: integral})
|
||||
session.SendMsg(string(this.module.GetType()), "singleover", &pb.CanineRabbitSingleOverResp{Rabbitintegral: info.Rabbitintegral, Houndintegral: info.Houndintegral})
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user