This commit is contained in:
richboo111
2023-05-29 15:01:49 +08:00
parent 5b3cb7fec5
commit f9c168a1c4

View File

@@ -26,7 +26,7 @@ func (a *API) PreCreateOrder(preOrder *PreCreateOrderReq) (price float64, err er
s, _ := json.Marshal(resp.BaseRetVal.Result)
if err = json.Unmarshal(s, &retVal); err == nil {
globals.SugarLogger.Debugf("PreCreateOrder resp=%s", utils.Format4Output(retVal, false))
return retVal.EstimatePayMoney, nil
return retVal.ChargePriceList.ShopPayPrice, nil
} else {
return 0, err
}