jiangping
2025-04-07 ed5980d88cc94a3d30f962bcd329b30e665633a2
server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java
@@ -114,6 +114,16 @@
        }
        return null;
    }
    public static QywxBaseResponse<String> getUserInfoByCode(String token,String code)  {
        String[] interfaceUrl = QywxConstant.GET_USER_BY_AUTH_CODE;
        String url = interfaceUrl[0].replace("${accesstoken}",token).replace("${code}",code);
        QywxBaseResponse<String> response = sendHttpRequest(url,interfaceUrl[1],""
                ,new TypeReference<QywxBaseResponse<String>>(){});
        if(response.getErrcode()!=null && response.getErrcode() ==0){
            return response;
        }
        return null;
    }
    /**
     * 发起wms接口请求