上传拆颜色奖励
This commit is contained in:
parent
4fb07bae3f
commit
86eaf106d5
@ -20,6 +20,7 @@ func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleO
|
|||||||
score int32
|
score int32
|
||||||
conf *cfg.GameGColorGetfractionData
|
conf *cfg.GameGColorGetfractionData
|
||||||
tconf *cfg.GameGColortTmedecayData
|
tconf *cfg.GameGColortTmedecayData
|
||||||
|
handlenum int
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
if errdata = this.SingleOverCheck(session, req); errdata != nil {
|
if errdata = this.SingleOverCheck(session, req); errdata != nil {
|
||||||
@ -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