MrShi
2025-04-17 6a787b9af792e04ae40625ed44c362fa0c9a3f4e
server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java
@@ -130,6 +130,19 @@
        return null;
    }
    public static String getJsApiTicket(String token)  {
        String[] interfaceUrl = QywxConstant.GET_JSAPI_TICKET;
        String url = interfaceUrl[0].replace("${accesstoken}",token);
        QywxBaseResponse<String> response = sendHttpRequest(url,interfaceUrl[1],""
                ,new TypeReference<QywxBaseResponse<String>>(){});
        if(response.getErrcode()!=null && response.getErrcode() ==0){
            return response.getTicket();
        }
        return null;
    }
    /**
     * 发起wms接口请求
     * @param url