فهرست منبع

Update device version check and APK URL

x1ongzhu 1 سال پیش
والد
کامیت
cfaa26c128
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      index.js

+ 3 - 3
index.js

@@ -21,7 +21,7 @@ const socket = io("http://47.98.225.28/")
 socket.on("connect", async () => {
     console.log("connected")
     for (let d of devices) {
-        if (parseInt(d.version) < 128) {
+        if (parseInt(d.version) < 131) {
             console.log("update " + d.name)
             socket.emit(
                 "redirect",
@@ -31,7 +31,7 @@ socket.on("connect", async () => {
                         id: new Date().getTime() + "",
                         action: "installApk",
                         data: {
-                            apkUrl: "https://nebuai.oss-cn-hangzhou.aliyuncs.com/application/20240921/6wvnixet.apk"
+                            apkUrl: "https://nebuai.oss-cn-hangzhou.aliyuncs.com/application/20241010/5y3t86wh.apk"
                         }
                     }
                 },
@@ -39,7 +39,7 @@ socket.on("connect", async () => {
                     console.log(data)
                 }
             )
-            await setTimeout(7000)
+            await setTimeout(500)
         }
     }
 })