|
@@ -90,6 +90,10 @@ func Subtraction(number1, number2 float64) float64 {
|
|
|
func ComputeModelPrice(response interface{}) (model string, price float64) {
|
|
|
fmt.Printf("response=%v \n", response)
|
|
|
|
|
|
+ if response == nil {
|
|
|
+ return modelArray[0], priceArray[0]
|
|
|
+ }
|
|
|
+
|
|
|
// 先获取所有本次响应里所有的model
|
|
|
modelInputArray := make([]string, 0)
|
|
|
|