上传拆颜色奖励
This commit is contained in:
parent
4fb07bae3f
commit
86eaf106d5
@ -16,11 +16,12 @@ func (this *apiComp) SingleOverCheck(session comm.IUserSession, req *pb.DColorSi
|
|||||||
|
|
||||||
func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleOverReq) (errdata *pb.ErrorData) {
|
func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleOverReq) (errdata *pb.ErrorData) {
|
||||||
var (
|
var (
|
||||||
info *pb.DBDColor
|
info *pb.DBDColor
|
||||||
score int32
|
score int32
|
||||||
conf *cfg.GameGColorGetfractionData
|
conf *cfg.GameGColorGetfractionData
|
||||||
tconf *cfg.GameGColortTmedecayData
|
tconf *cfg.GameGColortTmedecayData
|
||||||
err error
|
handlenum int
|
||||||
|
err error
|
||||||
)
|
)
|
||||||
if errdata = this.SingleOverCheck(session, req); errdata != nil {
|
if errdata = this.SingleOverCheck(session, req); errdata != nil {
|
||||||
return
|
return
|
||||||
@ -32,7 +33,14 @@ func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleO
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if conf, err = this.module.configure.getGameGColorGetfractionData(int32(req.Difficulty)+1, req.Repeat, len(req.Handles)-1); err != nil {
|
|
||||||
|
for _, v := range req.Handles {
|
||||||
|
if v.Uid != "" {
|
||||||
|
handlenum++
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if conf, err = this.module.configure.getGameGColorGetfractionData(int32(req.Difficulty)+1, req.Repeat, handlenum-1); err != nil {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ConfigNoFound,
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
Message: err.Error(),
|
Message: err.Error(),
|
||||||
|
Loading…
Reference in New Issue
Block a user