Sfoglia il codice sorgente

feat : 非嵌入式SDK接入, 接口提交6

bilingfeng 11 mesi fa
parent
commit
8fd6977103

+ 1 - 1
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/SDKApplication.java

@@ -23,7 +23,7 @@ public class SDKApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(SDKApplication.class, args);
-        System.out.println("赞象SDK服务启动成功 <非嵌入式SDK接入, 接口提交5> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象SDK服务启动成功 <非嵌入式SDK接入, 接口提交6> ( ´・・)ノ(._.`) \n" +
                 " ___________ _   __\n" +
                 "/  ___|  _  \\ | / /\n" +
                 "\\ `--.| | | | |/ / \n" +

+ 4 - 3
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/adapter/WebHandlerAdapter.java

@@ -91,12 +91,13 @@ public class WebHandlerAdapter implements HandlerInterceptor {
         String server = request.getParameter("server");
         //检查加密必传参数
         if (StringUtils.isAnyBlank(gameId, timestamp, nonce, sign, server)) {
+            log.error("去烧");
             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);
         if (gameExt == null || Strings.isBlank(gameExt.getLoginKey())) {

+ 0 - 1
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/pojo/param/CpPushUserParam.java

@@ -47,7 +47,6 @@ public class CpPushUserParam {
     /**
      * 请求UA
      */
-    @NotBlank(message = "请求UA不可为空")
     private String ua;
 
     /**