From ecca64e89323973ec365d7be69bc492fa5713ea7 Mon Sep 17 00:00:00 2001 From: nili Date: Thu, 15 Aug 2024 08:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=87=E8=BF=B9=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/awesome/group/game/service/MatrixService.java | 3 --- .../awesome/group/game/service/citrus/AdvRecordService.java | 1 - 2 files changed, 4 deletions(-) diff --git a/game-service/src/main/java/awesome/group/game/service/MatrixService.java b/game-service/src/main/java/awesome/group/game/service/MatrixService.java index 275c25e..e5c86da 100644 --- a/game-service/src/main/java/awesome/group/game/service/MatrixService.java +++ b/game-service/src/main/java/awesome/group/game/service/MatrixService.java @@ -46,7 +46,6 @@ public class MatrixService { if (app == null) { return;//非法请求,直接忽略 } - Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常"); MatrixAdvRecord record = new MatrixAdvRecord(); record.setDeviceId(bo.deviceId); @@ -78,7 +77,6 @@ public class MatrixService { if (app == null) { return; } - Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常"); String secret = app.getSecret(); String str = bo.getSignStr(secret); @@ -94,7 +92,6 @@ public class MatrixService { if (app == null) { return null; } - Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常"); LocalDate now = LocalDate.now(); YearMonth thisMonth = YearMonth.from(now); diff --git a/game-service/src/main/java/awesome/group/game/service/citrus/AdvRecordService.java b/game-service/src/main/java/awesome/group/game/service/citrus/AdvRecordService.java index e6fc588..d4f9c8e 100644 --- a/game-service/src/main/java/awesome/group/game/service/citrus/AdvRecordService.java +++ b/game-service/src/main/java/awesome/group/game/service/citrus/AdvRecordService.java @@ -40,7 +40,6 @@ public class AdvRecordService { Assert.isTrue(StringUtils.hasText(bo.appCode) && StringUtils.hasText(bo.sign), "非法请求"); MatrixApp app = appMapper.queryByCode(bo.appCode); Assert.isTrue(app != null, "非法请求"); - Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常"); String secret = app.getSecret(); String str = bo.getSignStrV3(secret);