奖励推送
This commit is contained in:
parent
cca1bee9c5
commit
f017ac5e8d
@ -87,7 +87,9 @@ func (this *apiComp) TurntableReward(session comm.IUserSession, req *pb.Activity
|
|||||||
// 发奖
|
// 发奖
|
||||||
item, drawkey, err := this.module.Turntable(data.Val+1, reward)
|
item, drawkey, err := this.module.Turntable(data.Val+1, reward)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
this.module.DispenseRes(session, []*cfg.Gameatn{item}, true)
|
if errdata, atno = this.module.DispenseAtno(session, []*cfg.Gameatn{item}, true); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
// 修改进度
|
// 修改进度
|
||||||
data.Gotarr[drawkey] = 1
|
data.Gotarr[drawkey] = 1
|
||||||
data.Val += 1
|
data.Val += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user