diff --git a/app/svc/svc_points_center.go b/app/svc/svc_points_center.go index 6ca2cea..5c8c603 100644 --- a/app/svc/svc_points_center.go +++ b/app/svc/svc_points_center.go @@ -78,7 +78,11 @@ func GetEggPointRecordBase(now time.Time, uid int64, page int, limit int) ([]md. results = append(results, doc) } } - nowScore = utils.Float64ToStr(results[0].ScoreValue) + if len(results) > 0 { + nowScore = utils.Float64ToStr(results[0].ScoreValue) + } else { + nowScore = "60" + } } else { nowScore = "60" }