mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix: 数据源插件里实现获取飞书token
This commit is contained in:
committed by
xuwei-fit2cloud
parent
0af52e1963
commit
25ab3753be
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user