admin
2020-02-23 b59fef5c00b15fdfdfa9d4be26e5bf6b41c75458
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/HelpController.java
@@ -43,9 +43,11 @@
         return;
      }
      AppPageNotification ap = appPageNotificationService.getValidNotificationByTypeCache(type);
      if ("home".equalsIgnoreCase(type)
            && VersionUtil.smallerThan_1_5_1(acceptData.getPlatform(), acceptData.getVersion()) && ap != null) {
      String platform = acceptData.getPlatform();
      String version = acceptData.getVersion();
      AppPageNotification ap = appPageNotificationService.getValidNotificationByTypeCache(type,platform, Integer.parseInt(version));
      if ("home".equalsIgnoreCase(type) && VersionUtil.smallerThan_1_5_1(platform, version) && ap != null) {
         AppPageNotification no = new AppPageNotification();
         no.setContentUrl("");
         no.setMd5("111111111111111111");
@@ -54,7 +56,7 @@
         no.setType(ap.getType());
         no.setUpdateTime(ap.getUpdateTime());
         no.setCanClose(false);
         no.setContent(String.format("尊敬的用户,为更加准确高效的为你返利、省钱,请升级到%s最新版本",Constant.getAppName(acceptData.getPlatform(), acceptData.getVersion())));
         no.setContent(String.format("尊敬的用户,为更加准确高效的为你返利、省钱,请升级到%s最新版本",Constant.getAppName(platform, version)));
         Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();
         out.print(JsonUtil.loadTrueResult(gson.toJson(no)));
         return;