Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
commit
b3c4bedf4b
|
@ -3,7 +3,6 @@ package gmodel
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"fusenapi/constants"
|
"fusenapi/constants"
|
||||||
"sort"
|
"sort"
|
||||||
|
@ -185,7 +184,7 @@ func (d *FsProductModel3dModel) GetProductMinPrice(modelList []FsProductModel3d,
|
||||||
}
|
}
|
||||||
var stepPrice StepPriceJsonStruct
|
var stepPrice StepPriceJsonStruct
|
||||||
if err := json.Unmarshal(*modelInfo.StepPrice, &stepPrice); err != nil {
|
if err := json.Unmarshal(*modelInfo.StepPrice, &stepPrice); err != nil {
|
||||||
return errors.New(fmt.Sprintf("failed to parse model step price:%d", modelInfo.Id))
|
return fmt.Errorf("failed to parse model step price:%d", modelInfo.Id)
|
||||||
}
|
}
|
||||||
lenRange := len(stepPrice.PriceRange)
|
lenRange := len(stepPrice.PriceRange)
|
||||||
if lenRange == 0 {
|
if lenRange == 0 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user