|
|
@@ -191,7 +191,7 @@ public class TeamService {
|
|
|
ImageUtils.drawCenteredString(g, userInfo.getNickname(), new Rectangle(0, 230 * 3, shareImg.getWidth(), 20 * 3), nicknameFont);
|
|
|
|
|
|
Font walkDataFont = pingFangMedium.deriveFont(17f * 3);
|
|
|
- ImageUtils.drawCenteredString(g, DAYS.between(userInfo.getCreatedAt(), LocalDateTime.now()) + "", new Rectangle(20 * 3, 295 * 3, 295 * 3 / 2, 24 * 3), walkDataFont);
|
|
|
+ ImageUtils.drawCenteredString(g, DAYS.between(userInfo.getCreatedAt(), LocalDateTime.now()) + 1 + "", new Rectangle(20 * 3, 295 * 3, 295 * 3 / 2, 24 * 3), walkDataFont);
|
|
|
ImageUtils.drawCenteredString(g, String.valueOf(userInfo.getWalkCities()), new Rectangle(295 * 3 / 2 + 20 * 3, 295 * 3, 295 * 3 / 2, 24 * 3), walkDataFont);
|
|
|
ImageUtils.drawCenteredString(g, String.valueOf(userInfo.getTotalSteps()), new Rectangle(20 * 3, 353 * 3, 295 * 3 / 2, 24 * 3), walkDataFont);
|
|
|
ImageUtils.drawCenteredString(g, coinService.totalAward(userId).toString(), new Rectangle(295 * 3 / 2 + 20 * 3, 353 * 3, 295 * 3 / 2, 24 * 3), walkDataFont);
|
|
|
@@ -203,7 +203,7 @@ public class TeamService {
|
|
|
ImageUtils.drawCenteredString(g, "总步数", new Rectangle(20 * 3, 376 * 3, 295 * 3 / 2, 24 * 3), labelFont);
|
|
|
ImageUtils.drawCenteredString(g, "获得奖金", new Rectangle(295 * 3 / 2 + 20 * 3, 376 * 3, 295 * 3 / 2, 24 * 3), labelFont);
|
|
|
|
|
|
- String userNum = String.valueOf(userInfoRepository.count());
|
|
|
+ String userNum = String.valueOf(userInfoRepository.count() + 10000);
|
|
|
Font numberFont = robot.deriveFont(39f * 3);
|
|
|
g.setColor(new Color(76, 128, 255));
|
|
|
g.setFont(numberFont);
|