admin
2019-12-28 1c8b5d11b68e727ef5ccc130327e2400f937321b
fanli/src/main/java/com/yeshi/fanli/service/impl/user/TokenRecordServiceImpl.java
@@ -119,6 +119,11 @@
   }
   @Override
   public TokenRecord getByTypeAndIdentify(String type, String identify) {
      return tokenRecordMapper.getByTypeAndIdentify(type, identify);
   }
   @Override
   public TokenVO discernToken(String token, Long uid, AcceptData acceptData) throws TokenRecordException {
      // 解析口令
      String parseToken = TokenUtil.parseToken(token);
@@ -220,7 +225,7 @@
            throw new TokenRecordException(1, "口令已失效");
         }
      } else if (tokenType == TokenTypeEnum.redPack) {
         if(!VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion()))
         if(!VersionUtil.greaterThan_2_0_5(acceptData.getPlatform(), acceptData.getVersion()))
            throw new TokenRecordException(1, "请升级到最新版");
         
         
@@ -510,7 +515,7 @@
            }
         });
      } else if (tokenType == TokenTypeEnum.redPack) {
         if(!VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion()))
         if(!VersionUtil.greaterThan_2_0_5(acceptData.getPlatform(), acceptData.getVersion()))
            throw new TokenRecordException(1, "请升级到最新版");
         
         try {