x1ongzhu il y a 7 ans
Parent
commit
3180010abd

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
city.json


+ 1 - 1
src/main/java/com/izouma/walkchina/service/JourneyService.java

@@ -189,7 +189,7 @@ public class JourneyService {
         journeyStageRepository.save(latestStage);
 
         Message lastMsg = messageRepository.findLast(userId, AppConstants.MessageType.PROGRESS_UPDATE);
-        if (lastMsg == null || lastMsg.getCreatedAt().plusMinutes(5).isAfter(LocalDateTime.now())) {
+        if (lastMsg == null || lastMsg.getCreatedAt().plusMinutes(5).isBefore(LocalDateTime.now())) {
             Message msg = Message.builder()
                                  .userId(userId)
                                  .content(String.format(

+ 2 - 2
src/main/java/com/izouma/walkchina/service/TeamService.java

@@ -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);

BIN
src/main/resources/static/share_img.png


BIN
src/main/resources/static/wxaqrcode.jpg


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff