购买挑战卷消耗
This commit is contained in:
parent
23d44b7c00
commit
ac7fb4642f
@ -72,7 +72,7 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.HeroBuyReq) (code pb
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := record.Onebuy; i < req.BuyCount; i++ {
|
for i := totalCount - req.BuyCount; i < totalCount; i++ {
|
||||||
|
|
||||||
if i >= int32(len(price)) {
|
if i >= int32(len(price)) {
|
||||||
totalCost += float64(price[len(price)-1]) / 1000
|
totalCost += float64(price[len(price)-1]) / 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user