|
|
@@ -14,11 +14,11 @@ const {
|
|
|
data: { items: devices }
|
|
|
} = await axiosInstance.post("/device", {
|
|
|
page: { page: 1, limit: 1000 },
|
|
|
- search: { where: { online: true }, order: { name: "ASC" } }
|
|
|
+ search: { where: { online: true, busy: false }, order: { name: "ASC" } }
|
|
|
})
|
|
|
|
|
|
for (let device of devices) {
|
|
|
- if (parseInt(device.version) < 140) {
|
|
|
+ if (parseInt(device.version) < 141) {
|
|
|
console.log(chalk.green(`${device.name} update`))
|
|
|
axiosInstance
|
|
|
.post(
|
|
|
@@ -26,7 +26,7 @@ for (let device of devices) {
|
|
|
{
|
|
|
action: "installApk",
|
|
|
data: {
|
|
|
- apkUrl: "https://nebuai.oss-cn-hangzhou.aliyuncs.com/application/20241023/kl4wequ8.apk"
|
|
|
+ apkUrl: "https://nebuai.oss-cn-hangzhou.aliyuncs.com/application/20241023/ocu6yrn9.apk"
|
|
|
}
|
|
|
},
|
|
|
{
|