Browse Source

update

master
shenjiachi 1 week ago
parent
commit
ea050a2dec
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/svc/svc_points_center.go

+ 5
- 1
app/svc/svc_points_center.go View File

@@ -78,7 +78,11 @@ func GetEggPointRecordBase(now time.Time, uid int64, page int, limit int) ([]md.
results = append(results, doc) results = append(results, doc)
} }
} }
nowScore = utils.Float64ToStr(results[0].ScoreValue)
if len(results) > 0 {
nowScore = utils.Float64ToStr(results[0].ScoreValue)
} else {
nowScore = "60"
}
} else { } else {
nowScore = "60" nowScore = "60"
} }


Loading…
Cancel
Save