一键领取

This commit is contained in:
meixiongfeng 2023-10-09 18:22:59 +08:00
parent cbe0c93635
commit 8b233d1ea4

View File

@ -37,14 +37,14 @@ func (this *apiComp) GetReward(session comm.IUserSession, req *pb.CaravanGetRewa
if reward.Key < 0 {
break
}
if _, ok := caravan.Reward[req.Lv]; ok {
if _, ok := caravan.Reward[index]; ok {
continue
}
if curProfit < int64(reward.Key) {
break
} else {
res = append(res, reward.Reward...)
caravan.Reward[req.Lv] = true
caravan.Reward[index] = true
}
}