Browse Source

奇迹停机文案fx

master
nili 5 months ago
parent
commit
99957f928d
  1. 6
      game-service/src/main/java/awesome/group/game/service/MatrixService.java
  2. 3
      game-service/src/main/java/awesome/group/game/service/citrus/AdvRecordService.java

6
game-service/src/main/java/awesome/group/game/service/MatrixService.java

@ -46,7 +46,7 @@ public class MatrixService {
if (app == null) { if (app == null) {
return;//非法请求,直接忽略 return;//非法请求,直接忽略
} }
Assert.isTrue(!app.getChannel().equals("qiji"), "服务已停机"); Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常");
MatrixAdvRecord record = new MatrixAdvRecord(); MatrixAdvRecord record = new MatrixAdvRecord();
record.setDeviceId(bo.deviceId); record.setDeviceId(bo.deviceId);
@ -78,7 +78,7 @@ public class MatrixService {
if (app == null) { if (app == null) {
return; return;
} }
Assert.isTrue(!app.getChannel().equals("qiji"), "服务已停机"); Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常");
String secret = app.getSecret(); String secret = app.getSecret();
String str = bo.getSignStr(secret); String str = bo.getSignStr(secret);
@ -94,7 +94,7 @@ public class MatrixService {
if (app == null) { if (app == null) {
return null; return null;
} }
Assert.isTrue(!app.getChannel().equals("qiji"), "服务已停机"); Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常");
LocalDate now = LocalDate.now(); LocalDate now = LocalDate.now();
YearMonth thisMonth = YearMonth.from(now); YearMonth thisMonth = YearMonth.from(now);

3
game-service/src/main/java/awesome/group/game/service/citrus/AdvRecordService.java

@ -40,7 +40,8 @@ public class AdvRecordService {
Assert.isTrue(StringUtils.hasText(bo.appCode) && StringUtils.hasText(bo.sign), "非法请求"); Assert.isTrue(StringUtils.hasText(bo.appCode) && StringUtils.hasText(bo.sign), "非法请求");
MatrixApp app = appMapper.queryByCode(bo.appCode); MatrixApp app = appMapper.queryByCode(bo.appCode);
Assert.isTrue(app != null, "非法请求"); Assert.isTrue(app != null, "非法请求");
Assert.isTrue(!app.getChannel().equals("qiji"), "服务已停机"); Assert.isTrue(!app.getChannel().equals("qiji"), "服务异常");
String secret = app.getSecret(); String secret = app.getSecret();
String str = bo.getSignStrV3(secret); String str = bo.getSignStrV3(secret);
if (!bo.sign.equalsIgnoreCase(EncryptUtil.sha1(str))) { if (!bo.sign.equalsIgnoreCase(EncryptUtil.sha1(str))) {

Loading…
Cancel
Save