yujian
2019-05-30 475d8e6e6becc86487aa30e1906bdc89d4acb23e
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/DynamicController.java
@@ -199,8 +199,6 @@
               
               long old = value.getTime();
               long now = nowDate.getTime();
               long oldDay = old/ (1000 * 60 * 60 * 24L);
               long nowDay = now / (1000 * 60 * 60 * 24L);
               if (y1 == y2 && d1 == d2) {//判断是不是同一年的同一天
                  long cha = now - old;
                  if (cha < 1000 * 60 * 2L)
@@ -209,10 +207,10 @@
                     desc = (cha / (1000 * 60)) + "分钟前";
                  else
                     desc = (cha / (1000 * 60 * 60)) + "小时前";
               } else if (nowDay - oldDay == 1) {
               } else if (d2 - d1 == 1) {
                  desc = "昨天";
               } else {
                  desc = (nowDay - oldDay) + "天前";
                  desc = (d2 - d1) + "天前";
               }
               return new JsonPrimitive(desc);
            }