Skip to content

Commit

Permalink
价格保留10位小数
Browse files Browse the repository at this point in the history
  • Loading branch information
hutiance committed Aug 13, 2024
1 parent f01df55 commit 240d803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/bitcoin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func init() {
btcDate := response.Data.BTC.Quote.CNY.LastUpdated.Format("2006-01-02 15:04:05")
ethPrice := response.Data.ETH.Quote.CNY.Price
ethDate := response.Data.ETH.Quote.CNY.LastUpdated.Format("2006-01-02 15:04:05")
ctx.SendChain(message.Text(fmt.Sprintf("BTC价格:%d,更新时间:%s\nETH价格:%d,更新时间%s", btcPrice, btcDate, ethPrice, ethDate)))
ctx.SendChain(message.Text(fmt.Sprintf("BTC价格:%.10f,更新时间:%s\nETH价格:%.10f,更新时间%s", btcPrice, btcDate, ethPrice, ethDate)))
})
}

Expand Down

0 comments on commit 240d803

Please sign in to comment.