Skip to content

Commit e76b67d

Browse files
committed
加入mysql tt
1 parent d1bfd33 commit e76b67d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

service-api/src/main/java/com/java110/api/smo/impl/ApiServiceSMOImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private void judgeAuthority(ApiDataFlow dataFlow) throws NoAuthorityException {
312312

313313
if (!StringUtil.isNullOrNone(dataFlow.getAppRoutes().get(0).getSecurityCode())) {
314314
String sign = AuthenticationFactory.apiDataFlowMd5(dataFlow);
315-
if (!sign.equals(dataFlow.getReqSign().toLowerCase())) {
315+
if (StringUtil.isEmpty(dataFlow.getReqSign()) || !sign.equals(dataFlow.getReqSign().toLowerCase())) {
316316
throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "签名失败");
317317
}
318318
}

springboot/src/main/java/com/java110/boot/smo/impl/ApiServiceSMOImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ private void judgeAuthority(ApiDataFlow dataFlow) throws NoAuthorityException {
318318

319319
if (!StringUtil.isNullOrNone(dataFlow.getAppRoutes().get(0).getSecurityCode())) {
320320
String sign = AuthenticationFactory.apiDataFlowMd5(dataFlow);
321-
if (!sign.equals(dataFlow.getReqSign().toLowerCase())) {
321+
if (StringUtil.isEmpty(dataFlow.getReqSign()) || !sign.equals(dataFlow.getReqSign().toLowerCase())) {
322322
throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "签名失败");
323323
}
324324
}

0 commit comments

Comments
 (0)