diff --git a/server/marketserver/api/v1/activity/contribution.go b/server/marketserver/api/v1/activity/contribution.go index 05e242db..ddd47f04 100644 --- a/server/marketserver/api/v1/activity/contribution.go +++ b/server/marketserver/api/v1/activity/contribution.go @@ -134,8 +134,8 @@ func (cta *ContriApi) CECQuery(c *gin.Context) { } `json:"info"` }{} - totalgcp, _ := service.Contribution.GetGlobalContribution(false) mycp, _ := service.Contribution.GetAddressContribution(account, false) + totalgcp, _ := service.Contribution.GetGlobalContribution(false) rspObj.CP = fmt.Sprintf("%.2f", mycp) rspObj.Info.MyCP = rspObj.CP rspObj.Info.GCP = fmt.Sprintf("%.2f", totalgcp) diff --git a/server/marketserver/service/contribution.go b/server/marketserver/service/contribution.go index 68be4687..202920ca 100644 --- a/server/marketserver/service/contribution.go +++ b/server/marketserver/service/contribution.go @@ -312,7 +312,7 @@ func (this *contribution) GetGlobalContribution(instant bool) (float64, error) { func (this *contribution) checkContributionList() { fmt.Println("checkContributionList start") for { - if time.Now().UTC().Hour() == 0 { + if time.Now().UTC().Hour() == 0 && time.Now().UTC().Minute() == 0 { nowseconds := f5.GetApp().GetRealSeconds() deletelist := []string{} this.accountContributionlist.Range(func(key string, value *accountContribution) bool {