Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Nov 7, 2023
1 parent 8509483 commit a0af2ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ func GetSubscriptionUsers(db *sql.DB) int64 {
return count
}

func GetBillingToday(cache *redis.Client) int64 {
return utils.MustInt(cache, getBillingFormat(getDay()))
func GetBillingToday(cache *redis.Client) float32 {
return float32(utils.MustInt(cache, getBillingFormat(getDay()))) / 100
}

func GetBillingMonth(cache *redis.Client) int64 {
return utils.MustInt(cache, getMonthBillingFormat(getMonth()))
func GetBillingMonth(cache *redis.Client) float32 {
return float32(utils.MustInt(cache, getMonthBillingFormat(getMonth()))) / 100
}

func GetModelData(cache *redis.Client) ModelChartForm {
Expand Down

0 comments on commit a0af2ab

Please sign in to comment.