mirror of https://github.com/NobyDa/Script.git
fix loon new version issues.
This commit is contained in:
parent
11dbe0de80
commit
a25a3a2cc3
|
@ -72,8 +72,12 @@ function nobyda() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (isLoon) {
|
if (isLoon) {
|
||||||
const get = JSON.parse($config.getSubPolicys(groupName));
|
return new Promise((resolve) => {
|
||||||
return get.map(n => n[0].name);
|
$config.getSubPolicys(groupName, (b) => {
|
||||||
|
const get = JSON.parse(b || '[]').map(n => n.name);
|
||||||
|
resolve(get)
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (isQuanX) {
|
if (isQuanX) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
|
Loading…
Reference in New Issue