wuxw
2024-01-08 e76b67db9ffde73650e7617a1404ba9222a8b6bc
springboot/src/main/java/com/java110/boot/smo/impl/ApiServiceSMOImpl.java
@@ -318,7 +318,7 @@
        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, "签名失败");
            }
        }
@@ -557,6 +557,10 @@
        HttpHeaders header = new HttpHeaders();
        //todo 对头信息重新包装
        for (String key : dataFlow.getRequestCurrentHeaders().keySet()) {
            if("userName".equals(key) || "user-name".equals(key)){
                header.add(key, "-");
                continue;
            }
            header.add(key, reqHeader.get(key));
        }
        //todo 用户信息再次包装