Update monitor.cpp

修改了api接口,保证国内可用
This commit is contained in:
arcsin3x 2023-11-15 16:55:33 +08:00 committed by GitHub
parent fca68423d4
commit d50227d010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}