上传拆颜色奖励
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
|
||||
conf *cfg.GameGColorGetfractionData
|
||||
tconf *cfg.GameGColortTmedecayData
|
||||
handlenum int
|
||||
err error
|
||||
)
|
||||
if errdata = this.SingleOverCheck(session, req); errdata != nil {
|
||||
@ -32,7 +33,14 @@ func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleO
|
||||
}
|
||||
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{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Message: err.Error(),
|
||||
|
Loading…
Reference in New Issue
Block a user