This commit is contained in:
richboo111
2024-01-10 11:27:28 +08:00
parent 7d6de7aba5
commit 8f715a2af6

View File

@@ -26,13 +26,7 @@ func (a *API) PreCreateOrder(preOrder *PreCreateOrderReq) (price float64, err er
temp := resp.BaseRetVal.Result.(map[string]interface{})
temp1 := temp["charge_price_list"].(map[string]interface{})
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 创建订单(店铺)