| | |
| | | return PlatformResult.failure(PlatformCode.ERROR_SIGN, "签名错误01"); |
| | | } |
| | | if (StringUtils.isEmpty(appId)) { |
| | | return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID错误01"); |
| | | return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID错误"); |
| | | } |
| | | |
| | | //校验appid是否存在 |
| | | if(!sys_appId.equals(appId)){ |
| | | return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID错误02"); |
| | | return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID无效"); |
| | | } |
| | | |
| | | //解密RSA |
| | |
| | | |
| | | //接口有效2秒钟 |
| | | if(System.currentTimeMillis()-date.getTime() > 2000){ |
| | | return PlatformResult.failure(PlatformCode.ERROR_INVALID_VISIT, "访问无效"); |
| | | return PlatformResult.failure(PlatformCode.ERRO_VISIT_OVERTIMR, "访问超时"); |
| | | } |
| | | |
| | | return PlatformResult.success(); |