|
@@ -64,12 +64,14 @@ const getURL = () => {
|
|
|
const getAllPlate = () => {
|
|
const getAllPlate = () => {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
|
postRequest(
|
|
postRequest(
|
|
|
- "http://localhost:6101/noauth/api/groupsforadmin",
|
|
|
|
|
|
|
+ // "http://localhost:6101/noauth/api/groupsforadmin",
|
|
|
|
|
+ "https://logic-executor-api.kexiaoshuang.com/noauth/api/groupsforadmin",
|
|
|
{
|
|
{
|
|
|
- key: "kxs#2024"
|
|
|
|
|
|
|
+ key: "tel#2024"
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
.then(async res => {
|
|
.then(async res => {
|
|
|
|
|
+ console.log(res);
|
|
|
resolve(res.data.data);
|
|
resolve(res.data.data);
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
@@ -86,12 +88,13 @@ const getGroupUrl = async (checkPlate = []) => {
|
|
|
if (checkPlate.length == 0) {
|
|
if (checkPlate.length == 0) {
|
|
|
checkPlate = await getAllPlate();
|
|
checkPlate = await getAllPlate();
|
|
|
}
|
|
}
|
|
|
- parameters.groups = checkPlate.map(item => {
|
|
|
|
|
|
|
+ console.log('123123', checkPlate);
|
|
|
|
|
+ parameters.groups = checkPlate ? checkPlate.map(item => {
|
|
|
return {
|
|
return {
|
|
|
name: item,
|
|
name: item,
|
|
|
version: URLLIST && URLLIST[item] ? URLLIST[item].groupVersion : 0
|
|
version: URLLIST && URLLIST[item] ? URLLIST[item].groupVersion : 0
|
|
|
};
|
|
};
|
|
|
- });
|
|
|
|
|
|
|
+ }) : [];
|
|
|
const timer = setTimeout(() => {
|
|
const timer = setTimeout(() => {
|
|
|
resolve(URLLIST);
|
|
resolve(URLLIST);
|
|
|
throw Error(
|
|
throw Error(
|
|
@@ -99,7 +102,8 @@ const getGroupUrl = async (checkPlate = []) => {
|
|
|
);
|
|
);
|
|
|
}, 5000);
|
|
}, 5000);
|
|
|
postRequest(
|
|
postRequest(
|
|
|
- "http://localhost:6101/noauth/api/listforadmin",
|
|
|
|
|
|
|
+ // "http://localhost:6101/noauth/api/listforadmin",
|
|
|
|
|
+ "https://logic-executor-api.kexiaoshuang.com/noauth/api/listforadmin",
|
|
|
parameters
|
|
parameters
|
|
|
)
|
|
)
|
|
|
.then(async res => {
|
|
.then(async res => {
|