File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
service-api/src/main/java/com/java110/api/smo/impl
springboot/src/main/java/com/java110/boot/smo/impl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ private void judgeAuthority(ApiDataFlow dataFlow) throws NoAuthorityException {
312
312
313
313
if (!StringUtil .isNullOrNone (dataFlow .getAppRoutes ().get (0 ).getSecurityCode ())) {
314
314
String sign = AuthenticationFactory .apiDataFlowMd5 (dataFlow );
315
- if (!sign .equals (dataFlow .getReqSign ().toLowerCase ())) {
315
+ if (StringUtil . isEmpty ( dataFlow . getReqSign ()) || !sign .equals (dataFlow .getReqSign ().toLowerCase ())) {
316
316
throw new NoAuthorityException (ResponseConstant .RESULT_CODE_NO_AUTHORITY_ERROR , "签名失败" );
317
317
}
318
318
}
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ private void judgeAuthority(ApiDataFlow dataFlow) throws NoAuthorityException {
318
318
319
319
if (!StringUtil .isNullOrNone (dataFlow .getAppRoutes ().get (0 ).getSecurityCode ())) {
320
320
String sign = AuthenticationFactory .apiDataFlowMd5 (dataFlow );
321
- if (!sign .equals (dataFlow .getReqSign ().toLowerCase ())) {
321
+ if (StringUtil . isEmpty ( dataFlow . getReqSign ()) || !sign .equals (dataFlow .getReqSign ().toLowerCase ())) {
322
322
throw new NoAuthorityException (ResponseConstant .RESULT_CODE_NO_AUTHORITY_ERROR , "签名失败" );
323
323
}
324
324
}
You can’t perform that action at this time.
0 commit comments