From 4ad14b5a9b7a325123ce63d7d5ebaba52e9598bd Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 18 Aug 2021 16:31:49 +0800 Subject: [PATCH] x --- models/asset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/asset.go b/models/asset.go index a62cb57..362eed7 100644 --- a/models/asset.go +++ b/models/asset.go @@ -409,7 +409,7 @@ func initFarm(cookie string, state chan string) { if a.TreeState == 2 || a.TreeState == 3 { rt += "已可领取⏰" } else if a.TreeState == 1 { - rt += fmt.Sprintf("种植中,进度%.2f%%🍒", 1-(float64(a.FarmUserPro.TreeTotalEnergy)/float64(a.FarmUserPro.TreeEnergy))) + rt += fmt.Sprintf("种植中,进度%.2f%%🍒", 100-(float64(a.FarmUserPro.TreeTotalEnergy)/float64(a.FarmUserPro.TreeEnergy))) } else if a.TreeState == 0 { rt = "您忘了种植新的水果⏰" }