Skip to content

Commit

Permalink
加入mysql tt
Browse files Browse the repository at this point in the history
  • Loading branch information
928255095 committed Jan 8, 2024
1 parent d1bfd33 commit e76b67d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private void judgeAuthority(ApiDataFlow dataFlow) throws NoAuthorityException {

if (!StringUtil.isNullOrNone(dataFlow.getAppRoutes().get(0).getSecurityCode())) {
String sign = AuthenticationFactory.apiDataFlowMd5(dataFlow);
if (!sign.equals(dataFlow.getReqSign().toLowerCase())) {
if (StringUtil.isEmpty(dataFlow.getReqSign()) || !sign.equals(dataFlow.getReqSign().toLowerCase())) {
throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "签名失败");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private void judgeAuthority(ApiDataFlow dataFlow) throws NoAuthorityException {

if (!StringUtil.isNullOrNone(dataFlow.getAppRoutes().get(0).getSecurityCode())) {
String sign = AuthenticationFactory.apiDataFlowMd5(dataFlow);
if (!sign.equals(dataFlow.getReqSign().toLowerCase())) {
if (StringUtil.isEmpty(dataFlow.getReqSign()) || !sign.equals(dataFlow.getReqSign().toLowerCase())) {
throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "签名失败");
}
}
Expand Down

0 comments on commit e76b67d

Please sign in to comment.