Jelajahi Sumber

Refactor modifierApk.js and pif.js

xiongzhu 1 tahun lalu
induk
melakukan
b955c37b35
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      modifierApk.js

+ 3 - 3
modifierApk.js

@@ -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"
                     }
                 },
                 {