From d50227d01074c3c355671273a40cbbbc6b417ddc Mon Sep 17 00:00:00 2001 From: arcsin3x <76581055+arcsin3x@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:55:33 +0800 Subject: [PATCH] Update monitor.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了api接口,保证国内可用 --- src/monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monitor.cpp b/src/monitor.cpp index 16c94196..7f091b68 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -152,7 +152,7 @@ String getBTCprice(void){ DynamicJsonDocument doc(1024); deserializeJson(doc, payload); - if (doc.containsKey("bitcoin")) bitcoin_price = doc["bitcoin"]["usd"]; + if (doc.containsKey("bitcoin")) bitcoin_price = doc["last_trade_price"]; doc.clear(); @@ -341,4 +341,4 @@ pool_data getPoolData(void){ } } return pData; -} \ No newline at end of file +}