fix: 数据源插件里实现获取飞书token

This commit is contained in:
taojinlong
2025-03-24 16:29:49 +08:00
committed by xuwei-fit2cloud
parent 0af52e1963
commit 25ab3753be
2 changed files with 2 additions and 7 deletions

View File

@@ -644,7 +644,7 @@ public class DatasourceServer implements DatasourceApi {
@Override
@XpackInteract(value = "datasourceResourceTree", before = false)
public void delete(Long datasourceId) throws DEException {
Objects.requireNonNull(CommonBeanFactory.getBean(DatasourceServer.class)).recursionDel(datasourceId);
Objects.requireNonNull(io.dataease.utils.CommonBeanFactory.getBean(DatasourceServer.class)).recursionDel(datasourceId);
}
public void recursionDel(Long datasourceId) throws DEException {
@@ -1445,11 +1445,6 @@ public class DatasourceServer implements DatasourceApi {
Object resObj = null;
try {
Method method = getMethod(dsType, methodName, classes);
if (object instanceof DatasourceRequest && dsType.equals("APILark")) {
Class<?> clazz = Class.forName(DatasourceRequest.class.getName());
Method setToken = clazz.getMethod("setToken", String.class);
setToken.invoke(object, dataSourceManage.getTenantAccessToken());
}
resObj = method.invoke(null, object);
} catch (Exception e) {
DEException.throwException(msg(e));

View File

@@ -27,7 +27,7 @@ public class DatasourceConfiguration extends Configuration {
redshift("redshift", "AWS Redshift", "OLTP", "\"", "\"", 13),
db2("db2", "Db2", "OLTP", "", "", 12),
ck("ck", "Clickhouse", "OLAP", "`", "`", 11),
h2("h2", "H2", "OLAP", "\"", "\"", null),
h2("h2", "H2", "OLAP", "\"", "\"", 30),
sqlServer("sqlServer", "Sqlserver", "DL", "[", "]", 2),
mongo("mongo", "MongoDB", "DL", "`", "`", 10);