feat: use simpler update_counter instead of timestamp for OTA updates
This commit is contained in:
+2
-2
@@ -1483,8 +1483,8 @@ createApp({
|
||||
|
||||
isPushingUpdate.value = true;
|
||||
|
||||
// 放弃版本号验证,直接使用时间戳强制下发更新指令
|
||||
config.update_timestamp = Date.now();
|
||||
// 每次点击,更新计数器 +1,终端只要看到计数器变大就会更新
|
||||
config.update_counter = (config.update_counter || 0) + 1;
|
||||
config.force_update = true;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user