1
This commit is contained in:
@@ -26,13 +26,7 @@ func (a *API) PreCreateOrder(preOrder *PreCreateOrderReq) (price float64, err er
|
|||||||
temp := resp.BaseRetVal.Result.(map[string]interface{})
|
temp := resp.BaseRetVal.Result.(map[string]interface{})
|
||||||
temp1 := temp["charge_price_list"].(map[string]interface{})
|
temp1 := temp["charge_price_list"].(map[string]interface{})
|
||||||
return temp1["shop_pay_price"].(float64), nil
|
return temp1["shop_pay_price"].(float64), nil
|
||||||
//retVal := PreCreateOrderResp{}
|
|
||||||
//s, _ := json.Marshal(resp.BaseRetVal.Result)
|
|
||||||
//if err = json.Unmarshal(s, &retVal); err == nil {
|
|
||||||
// return retVal.ChargePriceList.ShopPayPrice, nil
|
|
||||||
//} else {
|
|
||||||
// return 0, err
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateOrder 创建订单(店铺)
|
// CreateOrder 创建订单(店铺)
|
||||||
|
|||||||
Reference in New Issue
Block a user