购买挑战卷消耗

This commit is contained in:
meixiongfeng 2022-12-02 11:13:56 +08:00
parent 23d44b7c00
commit ac7fb4642f

View File

@ -72,7 +72,7 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.HeroBuyReq) (code pb
return
}
for i := record.Onebuy; i < req.BuyCount; i++ {
for i := totalCount - req.BuyCount; i < totalCount; i++ {
if i >= int32(len(price)) {
totalCost += float64(price[len(price)-1]) / 1000