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 {
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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments