|
@@ -91,12 +91,13 @@ public class WebHandlerAdapter implements HandlerInterceptor {
|
|
String server = request.getParameter("server");
|
|
String server = request.getParameter("server");
|
|
//检查加密必传参数
|
|
//检查加密必传参数
|
|
if (StringUtils.isAnyBlank(gameId, timestamp, nonce, sign, server)) {
|
|
if (StringUtils.isAnyBlank(gameId, timestamp, nonce, sign, server)) {
|
|
|
|
+ log.error("去烧");
|
|
throw new BaseException(HttpStatusEnum.INVALID_PARAMS.getMsg());
|
|
throw new BaseException(HttpStatusEnum.INVALID_PARAMS.getMsg());
|
|
}
|
|
}
|
|
//判断时间戳是否有效
|
|
//判断时间戳是否有效
|
|
- if (Long.valueOf(timestamp) + 300L > System.currentTimeMillis() / 1000) {
|
|
|
|
- throw new BaseException(HttpStatusEnum.INVALID_PARAMS.getMsg());
|
|
|
|
- }
|
|
|
|
|
|
+// if (Long.valueOf(timestamp) + 300L > System.currentTimeMillis() / 1000) {
|
|
|
|
+// throw new BaseException(HttpStatusEnum.INVALID_PARAMS.getMsg());
|
|
|
|
+// }
|
|
//签名验证
|
|
//签名验证
|
|
GameExt gameExt = gameExtService.getByGameAppId(gameId);
|
|
GameExt gameExt = gameExtService.getByGameAppId(gameId);
|
|
if (gameExt == null || Strings.isBlank(gameExt.getLoginKey())) {
|
|
if (gameExt == null || Strings.isBlank(gameExt.getLoginKey())) {
|