fix
This commit is contained in:
parent
5470f22e77
commit
104a9db7ea
|
@ -116,7 +116,12 @@ func (l *GetPriceByPidLogic) dealWithStepRange(stepNumSlice, stepPriceSlice []in
|
||||||
end := int64(0)
|
end := int64(0)
|
||||||
if numKey == 0 { //第一个
|
if numKey == 0 { //第一个
|
||||||
begin = *priceInfo.MinBuyNum * (*priceInfo.EachBoxNum)
|
begin = *priceInfo.MinBuyNum * (*priceInfo.EachBoxNum)
|
||||||
end = num - 1
|
//只有一阶价格
|
||||||
|
if lenStepPrice == 1 {
|
||||||
|
end = -1
|
||||||
|
} else {
|
||||||
|
end = num - 1
|
||||||
|
}
|
||||||
} else if numKey < lenStepNum-1 { //中间的
|
} else if numKey < lenStepNum-1 { //中间的
|
||||||
nextNum := int64(stepNumSlice[numKey+1]) * (*priceInfo.EachBoxNum)
|
nextNum := int64(stepNumSlice[numKey+1]) * (*priceInfo.EachBoxNum)
|
||||||
begin = num
|
begin = num
|
||||||
|
|
Loading…
Reference in New Issue
Block a user